The differences between vectors and vertices... in code!

Started by
29 comments, last by elendil67 21 years, 1 month ago
Just noticed this thread...


A Vertex is simply a point in 3d space. Like the Vertex(0,3,2);

A Vector(0,3,2) is a ray that STARTS at the origin, and ends at Vertex(0,3,2). That is the difference.

As long as your origin is the same throughout your app they are interchangable for all practicle purposes. You can have a struct vertex and a struct vector and do all your math in your game that way, but there is really no reason to.

TechleadEnilno, the Ultima 2 projectwww.dr-code.org/enilno

This topic is closed to new replies.

Advertisement