rustgd / cgmath

A linear algebra and mathematics library for computer graphics.
https://docs.rs/cgmath
Apache License 2.0
1.12k stars 155 forks source link

first steps to removal of `Point` #506

Closed InnocentusLime closed 1 year ago

InnocentusLime commented 4 years ago

I did the first steps to remove the Point (solving issue #502) As result all the PointN structs were removed (and the point.rs file was removed too) and replaced with VectorN. VectorN had EucledeanSpace implemented too. Some associated types and methods were removed for simplification

  1. Diff, Scalar in EuclideanSpace
  2. dot, from_vec and to_vec for EucledeanSpace
  3. to_homogenous and from_homogenous were added to Vector3 for convenienve

The library seems to compile in my case. Most likely the change is too radical and depreacating should be considered instead

I wasn't sure about some methods in Transform, so I left them intact