API Source
Functions
Vector2::newVector3::newQuaternion::looking_atColor::from_hexEnums
// not documented yet for this moduleConstants
Vector2::ZEROColor::WHITETypes
Vector2Vector3QuaternionColorTransform2DTransform3DDocs
Perro scripting uses Vector2, Vector3, Quaternion, Color, Transform2D, and Transform3D for common gameplay and scene math.
Math Types explains behavior, constraints, and practical usage so implementation decisions stay consistent across scripts and scenes.
Functions
Vector2::newVector3::newQuaternion::looking_atColor::from_hexEnums
// not documented yet for this moduleConstants
Vector2::ZEROColor::WHITETypes
Vector2Vector3QuaternionColorTransform2DTransform3Dlet dir = from.direction_to(target);let q = Quaternion::looking_at( Vector3::new(0.0, 0.0, -1.0), Vector3::new(0.0, 1.0, 0.0),);let accent = Color::from_hex("#3A86FF").unwrap_or(Color::WHITE);Vector2 and Vector3 support distance, direction, angle, dot, cross, length, normalization, and lerp helpers.
Quaternion supports stable 3D rotation, look-at, vector rotation, inverse, normalize, and slerp.
Color supports RGBA creation, hex parsing, conversion, and preset constants.
Transforms are the common 2D/3D position, rotation, and scale containers.