跳转到内容
查看源码

Float自动生成

分类:类型

32 位浮点数,字面量必须带小数点(1.0,而不是 1)。

Float

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

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