Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[geometry] Method to make a DOMPoint homogeneous #196

Open
zcorpan opened this issue Jun 15, 2017 · 1 comment
Open

[geometry] Method to make a DOMPoint homogeneous #196

zcorpan opened this issue Jun 15, 2017 · 1 comment

Comments

@zcorpan
Copy link
Member

zcorpan commented Jun 15, 2017

https://drafts.fxtf.org/geometry/#DOMPoint

https://en.wikipedia.org/wiki/Transformation_matrix#Perspective_projection

Since the result of matrixTransform() can be a non-homogeneous point (w != 1), it might be useful with a method that makes the point homogeneous (if possible).

Thoughts? @fsoder @smfr @hwanseung

@fuchsia
Copy link

fuchsia commented Jun 20, 2017

I don't think they stop being homogenous coordinates when w departs from unity. But you can do "perspective division" which divides each component by w, and returns w to one under most situations.

@chrishtr chrishtr added this to Backlog in High-priority issues via automation Jul 26, 2018
@chrishtr chrishtr removed this from Backlog in High-priority issues Jul 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants