-
-
Notifications
You must be signed in to change notification settings - Fork 983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No easy way to access components of Vector*i #1043
Comments
vec[0], vec[1] .. |
Is it planned to support |
what is the issue with using vec[0] instead of vec.x? the issue with the xyzw scheme is that you cannot iterate over it and id does not scale beyond 4d - therefore I would rather limit its usage.. |
That sounds sensible.
To be honest, this is related to the following: OGRECave/scape#28 |
I think you can make your usecase work by declaring template <> struct _OgreExport VectorBase<4, int> ... before instantiating a Vector4i |
System Information
Detailled description
I tried to access the components of a Vector*i like this:
vec.x;vec.y;vec.z;vec.w
However this didn't work.
It seems to me that this is only implemented for Ogre::Real vectors:
ogre/OgreMain/include/OgreVector.h
Line 270 in e1c3732
Is there another way or is this part just not implemented yet?
The text was updated successfully, but these errors were encountered: