GeometryTypes.jl icon indicating copy to clipboard operation
GeometryTypes.jl copied to clipboard

Homogeneous Coordinate Types?

Open AndrewGibb opened this issue 10 years ago • 3 comments

Would this package be a good place to implement homogeneous coordinates? I'd quite like to migrate my 3D Geometry work away from my home-grown Points to GeometryTypes Points, but I need homogeneous coordinates. I might be able to implement this myself, but I'm facing a looming thesis deadline, and wary of promising anything to anyone, sadly.

AndrewGibb avatar Sep 10 '15 11:09 AndrewGibb

I'd be happy! Feel free to ask any questions you encounter! Would be nice if you make your progress transparent, so that we can all comment. I guess I won't have many comments though ;)

SimonDanisch avatar Sep 10 '15 11:09 SimonDanisch

@AndrewGibb this sounds great and it would be helpful! Could you describe your ideal implementation a bit more? In Descartes.jl I am using homogeneous transformation matrices, but since it is only for affine vector transforms I am just planning to add definitions to AffineTranforms.jl. It would be great if this overlapped with #11!

sjkelly avatar Sep 10 '15 15:09 sjkelly

Something like adding a type PointH{N,T}, with convert methods to and from Point{N-1,T}. Methods defined for addition and subtraction. I guess GeometryTypes inherits dot etc from FixedSizeArrays. I think integrating with AffineTransforms.jl would be the best way to implement the transforms I need. I think that's all.

AndrewGibb avatar Sep 21 '15 09:09 AndrewGibb