vector3

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
levan
Halfling
Posts: 41
Joined: Sun Oct 27, 2013 11:57 pm
x 1

vector3

Post by levan »

Is Ogre::Vector3 a unit vector that represents direction and can also represent a location ?

best

levan
User avatar
tod
Troll
Posts: 1394
Joined: Wed Aug 02, 2006 9:41 am
Location: Bucharest
x 94
Contact:

Re: vector3

Post by tod »

It represents position most of the time, and it's not an unit vector. For direction/rotation Ogre uses quaternions.
User avatar
Kojack
OGRE Moderator
OGRE Moderator
Posts: 7157
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 534

Re: vector3

Post by Kojack »

All vectors can potentially be unit vectors and represent direction or a position.
For example, Ogre has setDirection() that takes a unit vector3 and setPosition that takes any vector3.
Post Reply