No matching definitions.

math/vec4

src/math/vec4.tur
defn

vec4

(vec4 [x : float y : float z : float w : float] :)

construct a 4D vector. Since: P1

defn

v4-x

(v4-x [v : int] :)

get x component. Since: P1

defn

v4-y

(v4-y [v : int] :)

get y component. Since: P1

defn

v4-z

(v4-z [v : int] :)

get z component. Since: P1

defn

v4-w

(v4-w [v : int] :)

get w component. Since: P1

defn

v4-add

(v4-add [a : int b : int] :)

add two Vec4 values. Since: P1

defn

v4-sub

(v4-sub [a : int b : int] :)

subtract two Vec4 values. Since: P1

defn

v4-scale

(v4-scale [v : int s : float] :)

scale a Vec4 by a scalar. Since: P1

defn

v4-dot

(v4-dot [a : int b : int] :)

dot product of two Vec4 values. Since: P1

defn

v4-lerp

(v4-lerp [a : int b : int t : float] :)

linearly interpolate between two Vec4 values. Since: P1