vec2

vec2.create()

vec2.set(v, w)

vec2.copy(v)

vec2.equals(v, w)

vec2.add(v, w)

vec2.sub(v, w)

vec2.scale(v, s)

vec2.dot(v, w)

vec2.length(v)

vec2.lengthSq(v)

vec2.normalize(v)

vec2.distance(v, w)

vec2.distanceSq(v, w)

vec2.limit(v, s)

vec2.lerp(v, w, t)

vec2.toString(v, precision)

vec3

vec3.create()

vec3.set(v, w)

vec3.copy(v)

vec3.equals(v, w)

vec3.add(v, w)

vec3.addScaled(v, w, s)

vec3.sub(v, w)

vec3.scale(v, s)

vec3.multMat4(v, m)

vec3.multQuat(v, q)

vec3.dot(v, w)

vec3.cross(v, w)

vec3.length(v)

vec3.lengthSq(v)

vec3.normalize(v)

vec3.distance(v, w)

vec3.distanceSq(v, w)

vec3.limit(v, s)

vec3.lerp(v, w, t)

vec3.toString(v, p)

vec4

vec4.create()

vec4.equals(v, w)

vec4.set(v, w)

vec4.fromVec3(v, v3)

vec4.multMat4(v, m)

vec4.copy(v)

mat3

mat3.create()

mat3.set(m, n)

mat3.identity(m)

mat3.equals(m, n)

mat3.fromMat4(m, m4)

mat3.fromQuat(m, q)

mat4

mat4.create()

mat4.set(m, n)

mat4.equals(m, n)

mat4.copy(m)

mat4.mult(m, n)

mat4.invert(m)

mat4.tranpose(m)

mat4.identity(m)

mat4.scale(m, v)

mat4.translate(m, v)

mat4.rotate(m, r, v)

mat4.frustum(m, left, right, bottom, top, near, far)

mat4.perspective(m, fovy, aspectRatio, near, far)

mat4.ortho(m, left, right, bottom, top, near, far)

mat4.lookAt(m, from, to, up)

mat4.fromQuat(m, q)

mat4.fromMat3(m, m3)

quat

quat.create()

quat.equals(q, p)

quat.identity(q)

quat.copy(q)

quat.set(q, p)

quat.mult(q, p)

quat.invert(q)

quat.conjugate(q)

quat.length(q)

quat.normalize(q)

quat.dot(q, p)

quat.setAxisAngle(q, axis, angle)

quat.fromMat3(q, m)

quat.fromMat4(q, m)

quat.getAngle(q)

quat.setEuler(q, yaw, pitch, roll)

quat.slerp(q, p, t)

quat.fromTo(q, from, to, up)

utils

utils.lerp(a, b, t)

utils.clamp(a, min, max)

utils.smoothstep(a, min, max)

utils.map(a, inStart, inEnd, outStart, outEnd)

toRadians(degrees)

toDegrees(radians)

fraction(a)

sign(a)

sign(a)

isPowerOfTwo(a)

nextPowerOfTwo(a)