Given everything that D offers, what would be the best way to implement a Point and a Vector type? The same (x, y, z) can be used to represent vectors, but a point represents a position, whereas a vector represents a direction. So, would you define two different structs for each? or define and implement an interface? a fixed array or POD members?
- Points and Vectors in 3D Caligo
- Re: Points and Vectors in 3D Simon
- Re: Points and Vectors in 3D Bekenn
- Re: Points and Vectors in 3D Spacen Jasset
- Re: Points and Vectors in 3D Simen kjaeraas
- Re: Points and Vectors in 3D Simon
- Re: Points and Vectors in 3D Simen kjaeraas
- Re: Points and Vectors in 3D Caligo