math reference
The math package: math.
math
struct Vec2
wolang
offer struct Vec2field x
wolang
var x: floatfield y
wolang
var y: floatmethod Dot
wolang
fun Dot(other: Vec2) -> float =>method LengthSquared
wolang
fun LengthSquared() -> float =>method Length
wolang
fun Length() -> float uses unsafemethod Normalized
wolang
fun Normalized() -> Vec2 uses unsafemethod Scaled
wolang
fun Scaled(k: float) -> Vec2 =>method Divided
wolang
fun Divided(k: float) -> Vec2 =>method Distance
wolang
fun Distance(other: Vec2) -> float uses unsafemethod Lerped
wolang
fun Lerped(other: Vec2, t: float) -> Vec2 =>method Clamped
wolang
fun Clamped(low: Vec2, high: Vec2) -> Vec2 =>method NearTo
wolang
fun NearTo(other: Vec2, tolerance: float) -> bool =>struct Vec3
wolang
offer struct Vec3field x
wolang
var x: floatfield y
wolang
var y: floatfield z
wolang
var z: floatmethod Dot
wolang
fun Dot(other: Vec3) -> float =>method Cross
wolang
fun Cross(other: Vec3) -> Vec3 =>method LengthSquared
wolang
fun LengthSquared() -> float =>method Length
wolang
fun Length() -> float uses unsafemethod Normalized
wolang
fun Normalized() -> Vec3 uses unsafemethod Scaled
wolang
fun Scaled(k: float) -> Vec3 =>method Divided
wolang
fun Divided(k: float) -> Vec3 =>method Distance
wolang
fun Distance(other: Vec3) -> float uses unsafemethod Lerped
wolang
fun Lerped(other: Vec3, t: float) -> Vec3 =>method Clamped
wolang
fun Clamped(low: Vec3, high: Vec3) -> Vec3 =>method NearTo
wolang
fun NearTo(other: Vec3, tolerance: float) -> bool =>struct Vec4
wolang
offer struct Vec4field x
wolang
var x: floatfield y
wolang
var y: floatfield z
wolang
var z: floatfield w
wolang
var w: floatmethod Dot
wolang
fun Dot(other: Vec4) -> float =>method LengthSquared
wolang
fun LengthSquared() -> float =>method Length
wolang
fun Length() -> float uses unsafemethod Normalized
wolang
fun Normalized() -> Vec4 uses unsafemethod Scaled
wolang
fun Scaled(k: float) -> Vec4 =>method Divided
wolang
fun Divided(k: float) -> Vec4 =>method Lerped
wolang
fun Lerped(other: Vec4, t: float) -> Vec4 =>method NearTo
wolang
fun NearTo(other: Vec4, tolerance: float) -> bool =>struct Mat3
wolang
offer struct Mat3field m00
wolang
var m00: floatfield m01
wolang
var m01: floatfield m02
wolang
var m02: floatfield m10
wolang
var m10: floatfield m11
wolang
var m11: floatfield m12
wolang
var m12: floatfield m20
wolang
var m20: floatfield m21
wolang
var m21: floatfield m22
wolang
var m22: floatmethod Transform
wolang
fun Transform(v: Vec3) -> Vec3 =>method Transposed
wolang
fun Transposed() -> Mat3 =>method Determinant
wolang
fun Determinant() -> float =>method NearTo
wolang
fun NearTo(other: Mat3, tolerance: float) -> bool =>function Mat3Identity
wolang
offer fun Mat3Identity() -> Mat3 =>struct Mat4
wolang
offer struct Mat4field m00
wolang
var m00: floatfield m01
wolang
var m01: floatfield m02
wolang
var m02: floatfield m03
wolang
var m03: floatfield m10
wolang
var m10: floatfield m11
wolang
var m11: floatfield m12
wolang
var m12: floatfield m13
wolang
var m13: floatfield m20
wolang
var m20: floatfield m21
wolang
var m21: floatfield m22
wolang
var m22: floatfield m23
wolang
var m23: floatfield m30
wolang
var m30: floatfield m31
wolang
var m31: floatfield m32
wolang
var m32: floatfield m33
wolang
var m33: floatmethod TransformPoint
wolang
fun TransformPoint(p: Vec3) -> Vec3 =>method TransformDirection
wolang
fun TransformDirection(d: Vec3) -> Vec3 =>method TransformVec4
wolang
fun TransformVec4(v: Vec4) -> Vec4 =>method Transposed
wolang
fun Transposed() -> Mat4 =>method Upper
wolang
fun Upper() -> Mat3 =>method NearTo
wolang
fun NearTo(other: Mat4, tolerance: float) -> bool =>function Mat4Identity
wolang
offer fun Mat4Identity() -> Mat4 =>function Mat4Translation
wolang
offer fun Mat4Translation(by: Vec3) -> Mat4 =>function Mat4Scale
wolang
offer fun Mat4Scale(by: Vec3) -> Mat4 =>function Mat4FromMat3
wolang
offer fun Mat4FromMat3(m: Mat3) -> Mat4 =>struct Quat
wolang
offer struct Quatfield x
wolang
var x: floatfield y
wolang
var y: floatfield z
wolang
var z: floatfield w
wolang
var w: floatmethod Dot
wolang
fun Dot(other: Quat) -> float =>method Length
wolang
fun Length() -> float uses unsafemethod Normalized
wolang
fun Normalized() -> Quat uses unsafemethod Conjugate
wolang
fun Conjugate() -> Quat =>method Rotate
wolang
fun Rotate(v: Vec3) -> Vec3method Slerp
wolang
fun Slerp(other: Quat, t: float) -> Quat uses unsafemethod ToMat3
wolang
fun ToMat3() -> Mat3method ToMat4
wolang
fun ToMat4() -> Mat4 =>method NearTo
wolang
fun NearTo(other: Quat, tolerance: float) -> bool =>function QuatIdentity
wolang
offer fun QuatIdentity() -> Quat =>function QuatAxisAngle
wolang
offer fun QuatAxisAngle(axis: Vec3, radians: float) -> Quat uses unsafe