![]() |
Blamite Game Engine - Strings
00356.06.18.22.0710.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
Structure representing a 3D vector. More...
#include <vector.h>
Public Member Functions | |
| BlamVector3 () | |
| BlamVector3 (float _x, float _y, float _z) | |
| BlamVector3 | ConvertForBGFX () |
| Converts the X/Y/Z coordinate directions from Blamite's coordinate system to the internal coordinate system used by bgfx. More... | |
| BlamVector3 | ConvertDegreesToRadians () |
| Converts all coordinates in the vector from degrees to radians. More... | |
| BlamVector3 | operator+ (const BlamVector3 &vector) |
| Combines the values of two 3D vectors. More... | |
| BlamVector3 | operator+ (const float &_float) |
| Adds a float value to the X, Y, and Z values of the vector. More... | |
| BlamVector3 | operator* (const BlamVector3 &vector) |
| Multiplies the values of two 3D vectors. More... | |
| BlamVector3 | operator* (const float &_float) |
| Multiplies the X, Y, and Z values of the vector by a float value. More... | |
Public Attributes | |
| float | x = 0.0f |
| The X-coordinate of the 3D vector, representing horizontal X (width) position. More... | |
| float | y = 0.0f |
| The Y-coordinate of the 3D vector, representing horizontal Y (depth) position. More... | |
| float | z = 0.0f |
| The Z-coordinate of the 3D vector, representing vertical position. More... | |
Structure representing a 3D vector.
|
inline |
| BlamVector3::BlamVector3 | ( | float | _x, |
| float | _y, | ||
| float | _z | ||
| ) |
| BlamVector3 BlamVector3::ConvertDegreesToRadians | ( | ) |
Converts all coordinates in the vector from degrees to radians.
| BlamVector3 BlamVector3::ConvertForBGFX | ( | ) |
Converts the X/Y/Z coordinate directions from Blamite's coordinate system to the internal coordinate system used by bgfx.
Called before submitting geometry to bgfx for rendering.
| BlamVector3 BlamVector3::operator* | ( | const BlamVector3 & | vector | ) |
Multiplies the values of two 3D vectors.
| vector | - The vector to multiply the current vector by. |
| BlamVector3 BlamVector3::operator* | ( | const float & | _float | ) |
Multiplies the X, Y, and Z values of the vector by a float value.
| _float | - The float value to multiply the vector values by. |
| BlamVector3 BlamVector3::operator+ | ( | const BlamVector3 & | vector | ) |
Combines the values of two 3D vectors.
| vector | - The vector to combine with the current vector. |
| BlamVector3 BlamVector3::operator+ | ( | const float & | _float | ) |
Adds a float value to the X, Y, and Z values of the vector.
| _float | - The float value to add to the vector. |
| float BlamVector3::x = 0.0f |
The X-coordinate of the 3D vector, representing horizontal X (width) position.
| float BlamVector3::y = 0.0f |
The Y-coordinate of the 3D vector, representing horizontal Y (depth) position.
| float BlamVector3::z = 0.0f |
The Z-coordinate of the 3D vector, representing vertical position.