package brr

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

Module Brr_canvas.Vec4Source

4D vector.

Sourcetype t

The type for DomPointReadOnly objects.

Sourceval 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.

Sourceval tr : Matrix4.t -> t -> t

tr m v transforms v by m.

Sourceval to_json : t -> Brr.Json.t

to_json v is v as JSON.

Element accessors

Sourceval x : t -> float
Sourceval y : t -> float
Sourceval z : t -> float
Sourceval w : t -> float