exception Vector3fs_exception of string
Raised when an error occurs (usually a division by zero)
This module defines the vector3fs type and various operations on it.
exception Vector3fs_exception of string
type t = {r : float; t : float; p : float}
r : float
|
Signed radius |
t : float
|
Longitude (theta). A longitude of 0 corresponds to a vector pointing towards positive Z. |
p : float
|
Latitude (phi). A latitude of 0 corresponds to a vector pointing towards the equator, and a latitude of pi/2 corresponds to a vector pointing towards the north pole (positive Y). |
val zero : t
val unit_x : t
val unit_y : t
val unit_z : t
val prop : float -> t -> t
val div : float -> t -> t
val to_cartesian : t -> Vector3f.t
val from_cartesian : Vector3f.t -> t
val norm : t -> float
val normalize : t -> t
val print : t -> string