package vector3

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Vector3Source

3D vectors

Sourcetype t = {
  1. x : float;
  2. y : float;
  3. z : float;
}
Constructors
Sourceval origin : t
Sourceval make : float -> float -> float -> t
Sourceval of_triplet : (float * float * float) -> t
Sourceval of_string : string -> t
Export to other types
Sourceval to_triplet : t -> float * float * float
Sourceval to_string : t -> string
Operations
Sourceval dot : t -> t -> float
Sourceval cross : t -> t -> t
Sourceval diff : t -> t -> t
Sourceval add : t -> t -> t
Sourceval mag2 : t -> float
Sourceval mag : t -> float
Sourceval angle : t -> t -> float
Sourceval dist : t -> t -> float
Sourceval div : t -> float -> t
Sourceval mult : t -> float -> t
Sourceval normalize : t -> t
Sourceval neg : t -> t
OCaml

Innovation. Community. Security.