servo / euclid

Geometry primitives (basic linear algebra) for Rust
Other
462 stars 103 forks source link

Add `cast` and `to_*` methods to `Translation2D`/`Translation3D` #506

Closed ids1024 closed 9 months ago

ids1024 commented 9 months ago

Matches definitions that exist for Vector2D/Vector3D.

These methods seem as applicable to "translations" as to "vectors". A space may have coordinates in different types, and conversion may be necessary.