package brr

  1. Overview
  2. Docs
On This Page
  1. Element accessors
Legend:
Library
Module
Module type
Parameter
Class
Class type

4D vector.

type t

The type for DomPointReadOnly objects.

val v : x:float -> y:float -> z:float -> w:float -> t

v ~x ~y ~z ~w is a vector (w = 0) or point (w = 1) with the given coordinates.

val tr : Matrix4.t -> t -> t

tr m v transforms v by m.

val to_json : t -> Brr.Json.t

to_json v is v as JSON.

Element accessors

val x : t -> float
val y : t -> float
val z : t -> float
val w : t -> float
OCaml

Innovation. Community. Security.