Brr_canvas.Vec4
4D vector.
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 to_json : t -> Brr.Json.t
to_json v
is v
as JSON.
val x : t -> float
val y : t -> float
val z : t -> float
val w : t -> float