Osiris Framework
0.2
|
Represents three-dimentional vectors. More...
#include <OsirisSDK/OMath.h>
Public Member Functions | |
OVector3 () | |
Class constructor. | |
OVector3 (const OVector3 &in) | |
Class copy constructor. | |
OVector3 (float val) | |
Class constructor. More... | |
OVector3 (float vx, float vy, float vz) | |
Class constructor. More... | |
virtual | ~OVector3 () |
Class destructor. | |
OVector3 | cross (const OVector3 &in) const |
Vector cross product. More... | |
void | setX (float val) |
Set the value for the X axis component. | |
void | setY (float val) |
Set the value for the Y axis component. | |
void | setZ (float val) |
Set the value for the Z axis component. | |
float | x () const |
Returns the value of the X axis component. | |
float | y () const |
Returns the value of the Y axis component. | |
float | z () const |
Returns the value of the Z axis component. | |
Public Member Functions inherited from OMathPrimitive< glm::vec3 > | |
OMathPrimitive () | |
Class constructor. | |
OMathPrimitive (const OMathPrimitive< glm::vec3 > &in) | |
Copy constructor. | |
virtual | ~OMathPrimitive () |
Class destructor. | |
OMathPrimitive< glm::vec3 > & | operator= (const OMathPrimitive< glm::vec3 > &in) |
OMathPrimitive< glm::vec3 > & | operator*= (const OMathPrimitive< glm::vec3 > &in) |
OMathPrimitive< glm::vec3 > | operator* (const OMathPrimitive< glm::vec3 > &in) |
bool | operator== (const OMathPrimitive< glm::vec3 > &in) const |
bool | operator!= (const OMathPrimitive< glm::vec3 > &in) const |
const GLfloat * | glArea () const |
Returns a pointer to the memory area to be used by OpenGL. | |
Static Public Member Functions | |
static OVector3 | cross (const OVector3 &a, const OVector3 &b) |
Vector cross product. More... | |
Additional Inherited Members | |
Protected Attributes inherited from OMathPrimitive< glm::vec3 > | |
glm::vec3 | _glmInternal |
Represents three-dimentional vectors.
OVector3::OVector3 | ( | float | val | ) |
Class constructor.
Creates a OVector3 with all components with the same value.
val | The value to be used by all of the three components. |
OVector3::OVector3 | ( | float | vx, |
float | vy, | ||
float | vz | ||
) |
Class constructor.
Creates a OVector3 taking in the values for each component.
Vector cross product.
in | Right value in the cross operation. |
Vector cross product.
a | Left value of the operation. |
b | Right value of the operation. |