Module Gg.P2
type t= p2The type for points.
val dim : intdimis the dimension of points of typep2.
type mh= m3The type for matrices representing linear transformations of homogenous 2D space.
Constructors, accessors and constants
val v : float -> float -> p2v x yis the point(x y).
val x : p2 -> floatx pis the x coordinate ofp.
val y : p2 -> floaty pis the y coordinate ofp.
val o : p2ois the point(0 0).
Functions
val tr : m3 -> p2 -> p2tr m pis the affine transform in homogenous 2D 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). UseV2.trto transform vectors (infinite points).