Original Post
I'm trying to implement the Separating Axis Theorem in my game but I don't really know much about vectors. So my question is how is a vector represented? Is it just a point?
Quote:
Original post by Numsgil
All points are vectors (meaning they are members of vector spaces, meaning they can be added and scaled).
But not all vectors are points. Some vectors are directions.
Quote:
One of the properties is called length. How could you define a length of point? What is the dot product of 2 points? What is the projection of a point into another point?
Quote:
what is A + B or a*A, where A, B are points and a is a scalar?
Quote:
Original post by MaulingMonkey
One can represent a point with a vector describing it's position relative to the origin of the coordinate system within which it is defined. Not only in theory -- in practice, this is how we treat them!
Quote:
While points may be conceptually distinct from vectors, all the common operations upon them are operations on that vector representation. Translation, rotation, scaling -- be it for movement of objects or translation into the coordinate system of the screen for rendering -- it's all standard vector math.
Quote:
Original post by mouserSVK
Also notice chapter with description of vector space axioms. Are you sure these definitions apply for points?
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more