brr
Brr_canvas.Vec4
4D vector.
brr.ocaml_poke
brr.ocaml_poke_ui
brr.poke
brr.poked
type t
The type for DomPointReadOnly objects.
DomPointReadOnly
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.
v ~x ~y ~z ~w
w
val tr : Matrix4.t -> t -> t
tr m v transforms v by m.
tr m v
v
m
val to_json : t -> Brr.Json.t
to_json v is v as JSON.
to_json v
val x : t -> float
val y : t -> float
val z : t -> float
val w : t -> float