Types: implement vectors, colors, rays, and scalar conversions #28
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Objective
Implement Vector2, Vector3, Vector3d, Vector4, Color4, Ray, and their arithmetic/conversion surface.
Deliverables
Validation
Prerequisite
The full API shim and semantic test-suite gates are complete.
Project constraints
Implemented and pushed in commit
3068e5e.Native Rust now covers the complete mapped Vector2, Vector3, Vector3d, Vector4, Color4, and Ray surface (266 members): constructors/constants, arithmetic and operators, normalization thresholds, finite checks, dot/cross/distance/interpolation, matrix/quaternion transforms, parsing/formatting, exact equality and .NET-compatible float hashes, HSV/color conversion, and explicit little-endian binary IO. Mutable destination mappings were corrected to &mut [u8]. Compatibility details from the pinned C# source, including partial buffer mutation, Vector3d.One, and Vector2 transform update order, are preserved. No external math type is exposed.
Verification:
Completion review found no owned failure-only bodies and coverage now reports 8 native Types / 300 members total.