![]() |
Blamite Game Engine - Strings
00390.07.02.23.1947.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... | |
bool | Equals (BlamVector3 vector) |
Checks if this vector is equal to another. More... | |
std::string | ToString () |
Converts the vector to a string, with each value separated by commas. 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.
bool BlamVector3::Equals | ( | BlamVector3 | vector | ) |
Checks if this vector is equal to another.
vector | - The vector to compare against. |
true
if the two vectors are equal, otherwise returns false
. 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. |
std::string BlamVector3::ToString | ( | ) |
Converts the vector to a string, with each value separated by commas.
x,y,z
format. 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.