Module Gg.P3
type t= p3The type for points.
val dim : intdimis the dimension of points of typep3.
type mh= m4The type for matrices representing linear transformations of homogenous 3D space.
Constructors, accessors and constants
val v : float -> float -> float -> p3v x y zis the point(x y z).
val x : p3 -> floatx pis the x coordinate ofp.
val y : p3 -> floaty pis the y coordinate ofp.
val z : p3 -> floaty pis the z coordinate ofp.
val o : p3ois the point(0 0 0).
Functions
val tr : m4 -> p3 -> p3tr m pis the affine transform in homogenous 3D space of the pointpbym.Note. Since
mis supposed to be affine the function ignores the last row ofm.pis treated as a finite point (its last coordinate in homogenous space is 1). UseV3.trto transform vectors (infinite points).