Gg.P2type t = p2The type for points.
dim is the dimension of points of type p2.
type mh = m3The type for matrices representing linear transformations of homogenous 2D space.
val v : float -> float -> p2v x y is the point (x y).
val x : p2 -> floatx p is the x coordinate of p.
val y : p2 -> floaty p is the y coordinate of p.
val o : p2o is the point (0 0).
tr m p is the affine transform in homogenous 2D space of the point p by m.
Note. Since m is supposed to be affine the function ignores the last row of m. p is treated as a finite point (its last coordinate in homogenous space is 1). Use V2.tr to transform vectors (infinite points).