Is Ogre::Vector3 a unit vector that represents direction and can also represent a location ?
best
levan
vector3
- tod
- Troll
- Posts: 1394
- Joined: Wed Aug 02, 2006 9:41 am
- Location: Bucharest
- x 94
- Contact:
Re: vector3
It represents position most of the time, and it's not an unit vector. For direction/rotation Ogre uses quaternions.
- Kojack
- OGRE Moderator
- Posts: 7157
- Joined: Sun Jan 25, 2004 7:35 am
- Location: Brisbane, Australia
- x 534
Re: vector3
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.
For example, Ogre has setDirection() that takes a unit vector3 and setPosition that takes any vector3.