{-# OPTIONS_GHC -Wall #-}
{-# LANGUAGE Safe #-}
module Physics.Learn.CoordinateFields
( x
, y
, z
, s
, phi
, r
, theta
)
where
import Physics.Learn.Position
( ScalarField
, cartesianCoordinates
, cylindricalCoordinates
, sphericalCoordinates
)
fst3 :: (a,b,c) -> a
fst3 :: forall a b c. (a, b, c) -> a
fst3 (a
v,b
_,c
_) = a
v
snd3 :: (a,b,c) -> b
snd3 :: forall a b c. (a, b, c) -> b
snd3 (a
_,b
v,c
_) = b
v
thd3 :: (a,b,c) -> c
thd3 :: forall a b c. (a, b, c) -> c
thd3 (a
_,b
_,c
v) = c
v
x :: ScalarField
x :: ScalarField
x = forall a b c. (a, b, c) -> a
fst3 forall b c a. (b -> c) -> (a -> b) -> a -> c
. Position -> (Double, Double, Double)
cartesianCoordinates
y :: ScalarField
y :: ScalarField
y = forall a b c. (a, b, c) -> b
snd3 forall b c a. (b -> c) -> (a -> b) -> a -> c
. Position -> (Double, Double, Double)
cartesianCoordinates
z :: ScalarField
z :: ScalarField
z = forall a b c. (a, b, c) -> c
thd3 forall b c a. (b -> c) -> (a -> b) -> a -> c
. Position -> (Double, Double, Double)
cartesianCoordinates
s :: ScalarField
s :: ScalarField
s = forall a b c. (a, b, c) -> a
fst3 forall b c a. (b -> c) -> (a -> b) -> a -> c
. Position -> (Double, Double, Double)
cylindricalCoordinates
phi :: ScalarField
phi :: ScalarField
phi = forall a b c. (a, b, c) -> b
snd3 forall b c a. (b -> c) -> (a -> b) -> a -> c
. Position -> (Double, Double, Double)
cylindricalCoordinates
r :: ScalarField
r :: ScalarField
r = forall a b c. (a, b, c) -> a
fst3 forall b c a. (b -> c) -> (a -> b) -> a -> c
. Position -> (Double, Double, Double)
sphericalCoordinates
theta :: ScalarField
theta :: ScalarField
theta = forall a b c. (a, b, c) -> b
snd3 forall b c a. (b -> c) -> (a -> b) -> a -> c
. Position -> (Double, Double, Double)
sphericalCoordinates