Hacker News new | past | comments | ask | show | jobs | submit login

> The extra real isn’t really part of the definition of the point in space though

It actually is. It's generally assumed to be equal to one, but it need not be.

> isn’t necessary to store to apply a 4x4 matrix

...if you assume it is equal to one, yes.

However, actually representing the fourth component is both mathematically sound and occasionally useful. For example, the midpoint of two affine points, such as (1, 2, 3, 1) and (3, 6, 9, 1) is actually just their sum: (4, 8, 12, 2), which represents the same 3D point as (2, 4, 6, 1). The fourth component can also be zero, in which case you describe a point at infinity in the given direction.

But yes, if you only use homogeneous coordinates for chaining 3D transformations, storing the extra component it pointless.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: