module Vector3d: sig
.. end
type
t = IntAGeom.vector3d
(x, y, z)
val of_points : IntAGeom.Point3d.t -> IntAGeom.Point3d.t -> t
Vector3d.of_points a b
returns the vector ab
from a
to b
.
val add : t -> t -> t
a + b
val sub : t -> t -> t
a - b
val mul : t -> int -> t
v * k
val div : t -> int -> t
v / k
val dot : t -> t -> int
Dot product of two vectors
val sq_length : t -> int
Returns the square of the length of this vector.
val normalise : t -> t
Normalises this vector
val cross : t -> t -> t
Calculate the cross product between two vectors.
module Infix: sig
.. end