Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Homogeneous Coordinate Types? #13

Open
AndrewGibb opened this issue Sep 10, 2015 · 3 comments
Open

Homogeneous Coordinate Types? #13

AndrewGibb opened this issue Sep 10, 2015 · 3 comments

Comments

@AndrewGibb
Copy link

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.

@SimonDanisch
Copy link
Member

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 ;)

@sjkelly
Copy link
Member

sjkelly commented Sep 10, 2015

@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!

@AndrewGibb
Copy link
Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants