Skip to content
View source

Vec3Generated

Category: Types

Three Floats; see Vec2.

Vec3

Three Floats; see Vec2.

Returns Function Category
Vec3 abs(x: Vec3) math
Vec3 acos(x: Vec3) math
Vec3 asin(x: Vec3) math
T at(field: Volume<T>, at: Vec3) field
T at_linear(field: Volume<T>, position: Vec3) field
Vec3 atan(x: Vec3) math
Vec3 ceil(x: Vec3) math
Vec3 clamp(x: Vec3, low: Float, high: Float) math
Vec3 clamp(x: Vec3, low: Vec3, high: Vec3) math
Vec3 coord() context
Vec3 cos(x: Vec3) math
Vec3 cosh(x: Vec3) math
Vec3 cross(a: Vec3, b: Vec3) math
Vec3 degrees(x: Vec3) math
Float distance(a: Vec3, b: Vec3) math
Vec3 domain() context
Float dot(a: Vec3, b: Vec3) math
DVec3 double(x: Vec3) conversion
DVec3 dvec3(v: Vec3) construction
Vec3 exp(x: Vec3) math
Vec3 exp2(x: Vec3) math
T fetch(field: Volume<T>, at: Vec3) field
Vec3 float(x: IVec3) conversion
Vec3 float(x: DVec3) conversion
Vec3 float(x: LVec3) conversion
Vec3 floor(x: Vec3) math
Vec3 fma(a: Vec3, b: Vec3, c: Vec3) math
Vec3 fract(x: Vec3) math
IVec3 int(x: Vec3) conversion
Vec3 inversesqrt(x: Vec3) math
Float length(v: Vec3) math
Vec3 log(x: Vec3) math
Vec3 log2(x: Vec3) math
LVec3 long(x: Vec3) conversion
Mat3 mat3(c0: Vec3, c1: Vec3, c2: Vec3) construction
Vec3 max(a: Vec3, b: Float) math
Vec3 max(a: Vec3, b: Vec3) math
Vec3 min(a: Vec3, b: Float) math
Vec3 min(a: Vec3, b: Vec3) math
Vec3 mix(a: Vec3, b: Vec3, t: Float) math
Vec3 mix(a: Vec3, b: Vec3, t: Vec3) math
Vec3 mod(x: Vec3, y: Vec3) math
Vec3 mod(x: Vec3, y: Float) math
Vec3 normalize(v: Vec3) math
Vec3 pow(base: Vec3, exponent: Float) math
Vec3 pow(base: Vec3, exponent: Vec3) math
T put(memory: Volume<T>, at: Vec3, value: T) memory
Vec3 radians(x: Vec3) math
Vec3 reflect(incident: Vec3, normal: Vec3) math
Vec3 refract(incident: Vec3, normal: Vec3, eta: Float) math
Vec3 round(x: Vec3) math
Vec3 saturate(x: Vec3) math
Vec3 sign(x: Vec3) math
Vec3 sin(x: Vec3) math
Vec3 sinh(x: Vec3) math
Vec3 size(field: Volume<T>) field
Vec3 smoothstep(low: Float, high: Float, x: Vec3) math
Vec3 smoothstep(low: Vec3, high: Vec3, x: Vec3) math
Vec3 sqrt(x: Vec3) math
Vec3 step(edge: Float, x: Vec3) math
Vec3 step(edge: Vec3, x: Vec3) math
Vec3 tan(x: Vec3) math
Vec3 tanh(x: Vec3) math
Vec3 trunc(x: Vec3) math
Vec3 vec3(x: Float, y: Float, z: Float) construction
Vec3 vec3(x: Int, y: Int, z: Int) construction
Vec3 vec3(xy: Vec2, z: Float) construction
Vec3 vec3(x: Float, yz: Vec2) construction
Vec4 vec4(xyz: Vec3, w: Float) construction
Vec4 vec4(x: Float, yzw: Vec3) construction