Module type Gg.P
Implemented by all point types.
val dim : int
dim
is the dimension of points of typet
.
type mh
The type for matrices representing linear transformations of homogenous
dim
space.
Constructors, accessors and constants
val o : t
o
is the point whose coordinates are all zero.
Functions
val tr : mh -> t -> t
tr m p
is the affine transform in homogenousdim
space of the pointp
bym
.Note. Since
m
is supposed to be affine the function ignores the last row ofm
.p
is treated as a finite point (its last coordinate in homogenous space is 1).