Skip to content
View source

Vec2Generated

Category: Types

Floats in two, three or four components: v.x, v.y, v.z, v.w, and v.rgb, v.xy and the like as swizzles.

Vec2 Vec3 Vec4

Floats in two, three or four components: v.x, v.y, v.z, v.w, and v.rgb, v.xy and the like as swizzles.

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