rsagl-0.2.1: The RogueStar Animation and Graphics LibrarySource codeContentsIndex
RSAGL.Vector
Documentation
data Point3D Source
Constructors
Point3D !Double !Double !Double
show/hide Instances
origin_point_3d :: Point3DSource
data Vector3D Source
Constructors
Vector3D !Double !Double !Double
show/hide Instances
data SurfaceVertex3D Source
Constructors
SurfaceVertex3D
sv3d_position :: Point3D
sv3d_normal :: Vector3D
show/hide Instances
zero_vector :: Vector3DSource
point3d :: (Double, Double, Double) -> Point3DSource
points3d :: [(Double, Double, Double)] -> [Point3D]Source
point2d :: (Double, Double) -> Point3DSource
points2d :: [(Double, Double)] -> [Point3D]Source
vector3d :: (Double, Double, Double) -> Vector3DSource
dotProduct :: Vector3D -> Vector3D -> DoubleSource
angleBetween :: Vector3D -> Vector3D -> AngleSource
crossProduct :: Vector3D -> Vector3D -> Vector3DSource
distanceBetween :: Xyz xyz => xyz -> xyz -> DoubleSource
distanceBetweenSquared :: Xyz xyz => xyz -> xyz -> DoubleSource
aNonZeroVector :: Vector3D -> Maybe Vector3DSource
vectorAdd :: Vector3D -> Vector3D -> Vector3DSource
vectorSum :: [Vector3D] -> Vector3DSource
vectorScale :: Double -> Vector3D -> Vector3DSource
vectorScaleTo :: Double -> Vector3D -> Vector3DSource
vectorToFrom :: Xyz xyz => xyz -> xyz -> Vector3DSource
vectorNormalize :: Vector3D -> Vector3DSource
vectorAverage :: [Vector3D] -> Vector3DSource
vectorLength :: Vector3D -> DoubleSource
vectorLengthSquared :: Vector3D -> DoubleSource
newell :: [Point3D] -> Vector3DSource
class Xyz a whereSource
Methods
toXYZ :: a -> XYZSource
fromXYZ :: XYZ -> aSource
show/hide Instances
type XYZ = (Double, Double, Double)Source
vectorString :: Xyz a => a -> StringSource
randomXYZ :: (RandomGen g, Xyz p) => (Double, Double) -> g -> (p, g)Source
fixOrtho :: Vector3D -> Vector3D -> Vector3DSource
fixOrtho2 :: Vector3D -> Vector3D -> (Vector3D, Vector3D)Source
fixOrtho2Left :: Vector3D -> Vector3D -> (Vector3D, Vector3D)Source
orthos :: Vector3D -> (Vector3D, Vector3D)Source
Produced by Haddock version 2.1.0