]> git.nega.tv - josh/narcissus/commit
Rework maths library
authorJoshua Simmons <josh@nega.tv>
Tue, 6 Sep 2022 21:43:38 +0000 (23:43 +0200)
committerJoshua Simmons <josh@nega.tv>
Tue, 6 Sep 2022 21:43:38 +0000 (23:43 +0200)
commit3ee87ba81c68e436be2a6dd6b7bff86c5aa8ca70
treeed5b8ac6b23bf116da0c6f767a53dc502e26338f
parent86fe8d0e311a2856518933c24cdb3731be312747
Rework maths library

Split into multiple files.
Add `Affine2` and `Affine3` transformation types.
Add `Point2` and `Point3` types.
Use macro instead of repeating basic `Point` and `Vec` implementation.
Change `Mat4 * Point` to use homogeneous coordinates where `w=1`.
Change `Mat4 * Vec` to use homogeneous coordinates where `w=0`.
12 files changed:
narcissus-maths/src/affine2.rs [new file with mode: 0644]
narcissus-maths/src/affine3.rs [new file with mode: 0644]
narcissus-maths/src/lib.rs
narcissus-maths/src/mat2.rs [new file with mode: 0644]
narcissus-maths/src/mat3.rs [new file with mode: 0644]
narcissus-maths/src/mat4.rs
narcissus-maths/src/point2.rs [new file with mode: 0644]
narcissus-maths/src/point3.rs [new file with mode: 0644]
narcissus-maths/src/quat.rs
narcissus-maths/src/vec2.rs
narcissus-maths/src/vec3.rs
narcissus-maths/src/vec4.rs