No matching definitions.

math/vec4

src/math/vec4.tur
defn

vec4

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

construct a 4D vector. Since: P1

defn

v4-x

(v4-x [v :int] :float)

get x component. Since: P1

defn

v4-y

(v4-y [v :int] :float)

get y component. Since: P1

defn

v4-z

(v4-z [v :int] :float)

get z component. Since: P1

defn

v4-w

(v4-w [v :int] :float)

get w component. Since: P1

defn

v4-add

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

add two Vec4 values. Since: P1

defn

v4-sub

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

subtract two Vec4 values. Since: P1

defn

v4-scale

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

scale a Vec4 by a scalar. Since: P1

defn

v4-dot

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

dot product of two Vec4 values. Since: P1

defn

v4-lerp

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

linearly interpolate between two Vec4 values. Since: P1