Skip to content
View source

FloatGenerated

Category: Types

A 32-bit float; written 1.0 or 2.5e-3, never 1.

Float

A 32-bit float; written 1.0 or 2.5e-3, never 1.

Returns Function Category
Float abs(x: Float) math
Float acos(x: Float) math
Float asin(x: Float) math
T at_linear(field: Rows<T>, position: Float) field
Float atan(x: Float) math
Float atan2(y: Float, x: Float) math
Int bits(x: Float) math
Float ceil(x: Float) math
Float clamp(x: Float, low: Float, high: Float) math
Vec2 clamp(x: Vec2, low: Float, high: Float) math
Vec3 clamp(x: Vec3, low: Float, high: Float) math
Vec4 clamp(x: Vec4, low: Float, high: Float) math
Float cos(x: Float) math
Float cosh(x: Float) math
Float degrees(x: Float) math
Float determinant(m: Mat2) math
Float determinant(m: Mat3) math
Float determinant(m: Mat4) math
Float distance(a: Vec2, b: Vec2) math
Float distance(a: Vec3, b: Vec3) math
Float distance(a: Vec4, b: Vec4) math
Float dot(a: Vec2, b: Vec2) math
Float dot(a: Vec3, b: Vec3) math
Float dot(a: Vec4, b: Vec4) math
Double double(x: Float) conversion
Float exp(x: Float) math
Float exp2(x: Float) math
Float float(x: Int) conversion
Float float(x: Bool) conversion
Float float(x: Double) conversion
Float float(x: Long) conversion
Float floor(x: Float) math
Float fma(a: Float, b: Float, c: Float) math
Float fract(x: Float) math
Float from_bits(x: Int) math
Int int(x: Float) conversion
Float inversesqrt(x: Float) math
Bool isinf(x: Float) math
Bool isnan(x: Float) math
Float length(v: Vec2) math
Float length(v: Vec3) math
Float length(v: Vec4) math
Float log(x: Float) math
Float log2(x: Float) math
Long long(x: Float) conversion
Mat2 mat2(diagonal: Float) construction
Mat3 mat3(diagonal: Float) construction
Mat4 mat4(diagonal: Float) construction
Float max(a: Float, b: Float) math
Vec2 max(a: Vec2, b: Float) math
Vec3 max(a: Vec3, b: Float) math
Vec4 max(a: Vec4, b: Float) math
Float min(a: Float, b: Float) math
Vec2 min(a: Vec2, b: Float) math
Vec3 min(a: Vec3, b: Float) math
Vec4 min(a: Vec4, b: Float) math
Float mix(a: Float, b: Float, t: Float) math
Vec2 mix(a: Vec2, b: Vec2, t: Float) math
Vec3 mix(a: Vec3, b: Vec3, t: Float) math
Vec4 mix(a: Vec4, b: Vec4, t: Float) math
Float mod(x: Float, y: Float) math
Vec2 mod(x: Vec2, y: Float) math
Vec3 mod(x: Vec3, y: Float) math
Vec4 mod(x: Vec4, y: Float) math
Float pow(base: Float, exponent: Float) math
Vec2 pow(base: Vec2, exponent: Float) math
Vec3 pow(base: Vec3, exponent: Float) math
Vec4 pow(base: Vec4, exponent: Float) math
Float radians(x: Float) math
Float rate() context
Vec2 refract(incident: Vec2, normal: Vec2, eta: Float) math
Vec3 refract(incident: Vec3, normal: Vec3, eta: Float) math
Vec4 refract(incident: Vec4, normal: Vec4, eta: Float) math
Float round(x: Float) math
Float saturate(x: Float) math
Float scale() context
Float sign(x: Float) math
Float sin(x: Float) math
Float sinh(x: Float) math
Float smoothstep(low: Float, high: Float, x: Float) math
Vec2 smoothstep(low: Float, high: Float, x: Vec2) math
Vec3 smoothstep(low: Float, high: Float, x: Vec3) math
Vec4 smoothstep(low: Float, high: Float, x: Vec4) math
Float sqrt(x: Float) math
Float step(edge: Float, x: Float) math
Vec2 step(edge: Float, x: Vec2) math
Vec3 step(edge: Float, x: Vec3) math
Vec4 step(edge: Float, x: Vec4) math
Float tan(x: Float) math
Float tanh(x: Float) math
Float time() context
Float trunc(x: Float) math
Vec2 vec2(x: Float, y: Float) construction
Vec3 vec3(x: Float, y: Float, z: Float) construction
Vec3 vec3(xy: Vec2, z: Float) construction
Vec3 vec3(x: Float, yz: Vec2) construction
Vec4 vec4(x: Float, y: Float, z: Float, w: Float) construction
Vec4 vec4(xyz: Vec3, w: Float) construction
Vec4 vec4(xy: Vec2, z: Float, w: Float) construction
Vec4 vec4(x: Float, yzw: Vec3) construction