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