laplaceliu/tycho_math/f64 does not have a README file
pub(all) struct DAffine3 { matrix3 : DMat3 translation : DVec3} derive(Eq, @moonbitlang/core/debug.DebugDebug)
impl Mul for DAffine3
fn mul(self : DAffine3, other : DAffine3) -> DAffine3
impl Show for DAffine3
fn to_string(self : DAffine3) -> String
fn DAffine3::approx_eq(self : DAffine3, other : DAffine3, eps? : Double) -> Bool
fn DAffine3::determinant(self : DAffine3) -> Double
fn DAffine3::from_cols(matrix3 : DMat3, translation : DVec3) -> DAffine3
fn DAffine3::from_dmat4(m : DMat4) -> DAffine3
fn DAffine3::from_translation(t : DVec3) -> DAffine3
fn DAffine3::identity() -> DAffine3
fn DAffine3::inverse(self : DAffine3) -> DAffine3?
fn DAffine3::to_affine3(self : DAffine3) -> @laplaceliu/tycho_math.Affine3Affine3
fn DAffine3::to_dmat4(self : DAffine3) -> DMat4
fn DAffine3::to_mat4(self : DAffine3) -> @laplaceliu/tycho_math.Mat4Mat4
fn DAffine3::transform_point3(self : DAffine3, p : DVec3) -> DVec3
fn DAffine3::transform_vector3(self : DAffine3, v : DVec3) -> DVec3
pub(all) struct DMat3 { x_axis : DVec3 y_axis : DVec3 z_axis : DVec3} derive(Eq, @moonbitlang/core/debug.DebugDebug)
impl Add for DMat3
fn add(self : DMat3, other : DMat3) -> DMat3
impl Mul for DMat3
fn mul(self : DMat3, other : DMat3) -> DMat3
impl Show for DMat3
fn to_string(self : DMat3) -> String
impl Sub for DMat3
fn sub(self : DMat3, other : DMat3) -> DMat3
fn DMat3::approx_eq(self : DMat3, other : DMat3, eps? : Double) -> Bool
fn DMat3::determinant(self : DMat3) -> Double
fn DMat3::from_cols(x_axis : DVec3, y_axis : DVec3, z_axis : DVec3) -> DMat3
fn DMat3::from_diagonal(diag : DVec3) -> DMat3
fn DMat3::from_dquat(q : DQuat) -> DMat3
fn DMat3::from_rotation_x(radians : Double) -> DMat3
fn DMat3::from_rotation_y(radians : Double) -> DMat3
fn DMat3::from_rotation_z(radians : Double) -> DMat3
fn DMat3::identity() -> DMat3
fn DMat3::inverse(self : DMat3) -> DMat3?
fn DMat3::inverse_transpose(self : DMat3) -> DMat3?
fn DMat3::mul_vec3(self : DMat3, v : DVec3) -> DVec3
fn DMat3::row0(self : DMat3) -> DVec3
fn DMat3::row1(self : DMat3) -> DVec3
fn DMat3::row2(self : DMat3) -> DVec3
fn DMat3::to_dmat4(self : DMat3) -> DMat4
fn DMat3::to_mat3(self : DMat3) -> @laplaceliu/tycho_math.Mat3Mat3
fn DMat3::transpose(self : DMat3) -> DMat3
pub(all) struct DMat4 { x_axis : DVec4 y_axis : DVec4 z_axis : DVec4 w_axis : DVec4} derive(Eq, @moonbitlang/core/debug.DebugDebug)
impl Mul for DMat4
fn mul(self : DMat4, other : DMat4) -> DMat4
impl Show for DMat4
fn to_string(self : DMat4) -> String
fn DMat4::approx_eq(self : DMat4, other : DMat4, eps? : Double) -> Bool
fn DMat4::determinant(self : DMat4) -> Double
fn DMat4::from_axis_angle(axis : DVec3, angle : Double) -> DMat4
fn DMat4::from_cols(x_axis : DVec4, y_axis : DVec4, z_axis : DVec4, w_axis : DVec4) -> DMat4
fn DMat4::from_dmat3(m : DMat3) -> DMat4
fn DMat4::from_dquat(q : DQuat) -> DMat4
fn DMat4::from_scale(s : DVec3) -> DMat4
fn DMat4::from_scale_rotation_translation(scale : DVec3, rot : DQuat, trans : DVec3) -> DMat4
fn DMat4::from_translation(t : DVec3) -> DMat4
fn DMat4::identity() -> DMat4
fn DMat4::inverse(self : DMat4) -> DMat4?
fn DMat4::mul_vec4(self : DMat4, v : DVec4) -> DVec4
fn DMat4::project_point3(self : DMat4, p : DVec3) -> DVec3
fn DMat4::row0(self : DMat4) -> DVec4
fn DMat4::row1(self : DMat4) -> DVec4
fn DMat4::row2(self : DMat4) -> DVec4
fn DMat4::row3(self : DMat4) -> DVec4
fn DMat4::to_dmat3(self : DMat4) -> DMat3
fn DMat4::to_mat4(self : DMat4) -> @laplaceliu/tycho_math.Mat4Mat4
fn DMat4::transform_point3(self : DMat4, p : DVec3) -> DVec3
fn DMat4::transform_vector3(self : DMat4, v : DVec3) -> DVec3
fn DMat4::translation(self : DMat4) -> DVec3
fn DMat4::transpose(self : DMat4) -> DMat4
pub(all) struct DQuat { x : Double y : Double z : Double w : Double} derive(Eq, @moonbitlang/core/debug.DebugDebug)
impl Add for DQuat
fn add(self : DQuat, other : DQuat) -> DQuat
impl Mul for DQuat
fn mul(self : DQuat, other : DQuat) -> DQuat
impl Neg for DQuat
fn neg(self : DQuat) -> DQuat
impl Show for DQuat
fn to_string(self : DQuat) -> String
impl Sub for DQuat
fn sub(self : DQuat, other : DQuat) -> DQuat
fn DQuat::approx_eq(self : DQuat, other : DQuat, eps? : Double) -> Bool
fn DQuat::conjugate(self : DQuat) -> DQuat
fn DQuat::dot(self : DQuat, other : DQuat) -> Double
fn DQuat::from_axis_angle(axis : DVec3, angle : Double) -> DQuat
fn DQuat::from_euler(order : @laplaceliu/tycho_math.EulerOrderEulerOrder, a : Double, b : Double, c : Double) -> DQuat
fn DQuat::from_mat3(m : DMat3) -> DQuat
fn DQuat::from_quat(q : @laplaceliu/tycho_math.QuatQuat) -> DQuat
fn DQuat::from_rotation_arc(from : DVec3, to : DVec3) -> DQuat
fn DQuat::from_rotation_x(angle : Double) -> DQuat
fn DQuat::from_rotation_y(angle : Double) -> DQuat
fn DQuat::from_rotation_z(angle : Double) -> DQuat
fn DQuat::from_xyzw(x : Double, y : Double, z : Double, w : Double) -> DQuat
fn DQuat::identity() -> DQuat
fn DQuat::inverse(self : DQuat) -> DQuat
fn DQuat::length(self : DQuat) -> Double
fn DQuat::length_sq(self : DQuat) -> Double
fn DQuat::mul_vec3(self : DQuat, v : DVec3) -> DVec3
fn DQuat::nlerp(self : DQuat, other : DQuat, t : Double) -> DQuat
fn DQuat::normalize(self : DQuat) -> DQuat
fn DQuat::scale(self : DQuat, s : Double) -> DQuat
fn DQuat::slerp(self : DQuat, other : DQuat, t : Double) -> DQuat
fn DQuat::to_dmat3(self : DQuat) -> DMat3
fn DQuat::to_mat3(self : DQuat) -> @laplaceliu/tycho_math.Mat3Mat3
fn DQuat::to_quat(self : DQuat) -> @laplaceliu/tycho_math.QuatQuat
pub(all) struct DVec2 { x : Double y : Double} derive(Eq, @moonbitlang/core/debug.DebugDebug)
impl Add for DVec2
fn add(self : DVec2, other : DVec2) -> DVec2
impl Div for DVec2
fn div(self : DVec2, other : DVec2) -> DVec2
impl Mul for DVec2
fn mul(self : DVec2, other : DVec2) -> DVec2
impl Neg for DVec2
fn neg(self : DVec2) -> DVec2
impl Show for DVec2
fn to_string(self : DVec2) -> String
impl Sub for DVec2
fn sub(self : DVec2, other : DVec2) -> DVec2
fn DVec2::approx_eq(self : DVec2, other : DVec2, eps? : Double) -> Bool
fn DVec2::cross(self : DVec2, other : DVec2) -> Double
fn DVec2::dot(self : DVec2, other : DVec2) -> Double
fn DVec2::from_vec2(v : @laplaceliu/tycho_math.Vec2Vec2) -> DVec2
fn DVec2::length(self : DVec2) -> Double
fn DVec2::length_sq(self : DVec2) -> Double
fn DVec2::lerp(self : DVec2, other : DVec2, t : Double) -> DVec2
fn DVec2::new(x : Double, y : Double) -> DVec2
fn DVec2::normalize(self : DVec2) -> DVec2
fn DVec2::one() -> DVec2
fn DVec2::scale(self : DVec2, s : Double) -> DVec2
fn DVec2::splat(v : Double) -> DVec2
fn DVec2::to_vec2(self : DVec2) -> @laplaceliu/tycho_math.Vec2Vec2
fn DVec2::zero() -> DVec2
pub(all) struct DVec3 { x : Double y : Double z : Double} derive(Eq, @moonbitlang/core/debug.DebugDebug)
impl Add for DVec3
fn add(self : DVec3, other : DVec3) -> DVec3
impl Div for DVec3
fn div(self : DVec3, other : DVec3) -> DVec3
impl Mul for DVec3
fn mul(self : DVec3, other : DVec3) -> DVec3
impl Neg for DVec3
fn neg(self : DVec3) -> DVec3
impl Show for DVec3
fn to_string(self : DVec3) -> String
impl Sub for DVec3
fn sub(self : DVec3, other : DVec3) -> DVec3
fn DVec3::approx_eq(self : DVec3, other : DVec3, eps? : Double) -> Bool
fn DVec3::cross(self : DVec3, other : DVec3) -> DVec3
fn DVec3::distance(self : DVec3, other : DVec3) -> Double
fn DVec3::dot(self : DVec3, other : DVec3) -> Double
fn DVec3::extend_w(self : DVec3, w : Double) -> DVec4
fn DVec3::from_vec3(v : @laplaceliu/tycho_math.Vec3Vec3) -> DVec3
fn DVec3::is_finite(self : DVec3) -> Bool
fn DVec3::length(self : DVec3) -> Double
fn DVec3::length_sq(self : DVec3) -> Double
fn DVec3::lerp(self : DVec3, other : DVec3, t : Double) -> DVec3
fn DVec3::max(self : DVec3, other : DVec3) -> DVec3
fn DVec3::min(self : DVec3, other : DVec3) -> DVec3
fn DVec3::new(x : Double, y : Double, z : Double) -> DVec3
fn DVec3::normalize(self : DVec3) -> DVec3
fn DVec3::one() -> DVec3
fn DVec3::scale(self : DVec3, s : Double) -> DVec3
fn DVec3::splat(v : Double) -> DVec3
fn DVec3::to_vec3(self : DVec3) -> @laplaceliu/tycho_math.Vec3Vec3
fn DVec3::truncate(self : DVec3) -> DVec2
fn DVec3::try_normalize(self : DVec3) -> DVec3?
fn DVec3::unit_x() -> DVec3
fn DVec3::unit_y() -> DVec3
fn DVec3::unit_z() -> DVec3
fn DVec3::zero() -> DVec3
pub(all) struct DVec4 { x : Double y : Double z : Double w : Double} derive(Eq, @moonbitlang/core/debug.DebugDebug)
impl Add for DVec4
fn add(self : DVec4, other : DVec4) -> DVec4
impl Mul for DVec4
fn mul(self : DVec4, other : DVec4) -> DVec4
impl Neg for DVec4
fn neg(self : DVec4) -> DVec4
impl Show for DVec4
fn to_string(self : DVec4) -> String
impl Sub for DVec4
fn sub(self : DVec4, other : DVec4) -> DVec4
fn DVec4::approx_eq(self : DVec4, other : DVec4, eps? : Double) -> Bool
fn DVec4::dot(self : DVec4, other : DVec4) -> Double
fn DVec4::length(self : DVec4) -> Double
fn DVec4::length_sq(self : DVec4) -> Double
fn DVec4::new(x : Double, y : Double, z : Double, w : Double) -> DVec4
fn DVec4::normalize(self : DVec4) -> DVec4
fn DVec4::one() -> DVec4
fn DVec4::scale(self : DVec4, s : Double) -> DVec4
fn DVec4::splat(v : Double) -> DVec4
fn DVec4::to_vec4(self : DVec4) -> @laplaceliu/tycho_math.Vec4Vec4
fn DVec4::truncate(self : DVec4) -> DVec3
fn DVec4::unit_w() -> DVec4
fn DVec4::xyz(self : DVec4) -> DVec3
fn DVec4::zero() -> DVec4
let EPSILON : Double
fn dlook_at_lh(eye : DVec3, target : DVec3, up : DVec3) -> DMat4
fn dlook_at_rh(eye : DVec3, target : DVec3, up : DVec3) -> DMat4
fn dlook_to_lh(eye : DVec3, dir : DVec3, up : DVec3) -> DMat4
fn dlook_to_rh(eye : DVec3, dir : DVec3, up : DVec3) -> DMat4
fn dorthographic_rh(left : Double, right : Double, bottom : Double, top : Double, z_near : Double, z_far : Double, clip? : @laplaceliu/tycho_math.ClipSpaceClipSpace) -> DMat4
fn dorthographic_rh_reverse(left : Double, right : Double, bottom : Double, top : Double, z_near : Double, z_far : Double, clip? : @laplaceliu/tycho_math.ClipSpaceClipSpace) -> DMat4
fn dperspective_infinite_reverse_rh(fov_y_rad : Double, aspect : Double, z_near : Double, clip? : @laplaceliu/tycho_math.ClipSpaceClipSpace) -> DMat4
fn dperspective_lh(fov_y_rad : Double, aspect : Double, z_near : Double, z_far : Double, clip? : @laplaceliu/tycho_math.ClipSpaceClipSpace) -> DMat4
fn dperspective_rh(fov_y_rad : Double, aspect : Double, z_near : Double, z_far : Double, clip? : @laplaceliu/tycho_math.ClipSpaceClipSpace) -> DMat4
fn dperspective_rh_reverse(fov_y_rad : Double, aspect : Double, z_near : Double, z_far : Double, clip? : @laplaceliu/tycho_math.ClipSpaceClipSpace) -> DMat4
fn dproject(view_proj : DMat4, world : DVec3) -> DVec3
fn dunproject(view_proj_inverse : DMat4, ndc : DVec3) -> DVec3
Install
Tycho Math — zero-dependency pure-MoonBit fixed-dimension graphics & geometry math (glam/GLM-inspired, column-major, clip-space aware)
No dependencies
Published modules that use this version