Carpenter Engine
A C++ game engine with a build once run anywhere solution
|
A collection of utilities for the game engine code. More...
Go to the source code of this file.
Classes | |
struct | Engine::Vec2f |
A 2D vector struct with overloaded operators. More... | |
struct | Engine::Vec3f |
A 3D vector struct with overloaded operators. More... | |
struct | Engine::Color |
A color struct with 4 components: RGBA. More... | |
Enumerations | |
enum | Engine::Success { FAILURE = -1 , SUCCESS = -2 , WARNING = -3 } |
A generic success type. More... | |
Functions | |
Vec2f | Engine::Rotate (Vec2f v, float angle) |
Rotates a 2D vector by an angle. | |
Vec3f | Engine::Rotate (Vec3f v, Vec3f angle) |
Rotates a 3D vector in three dimensions. | |
float | Engine::InvSQRT (float x) |
returns the inverse square root of a float | |
A collection of utilities for the game engine code.
enum Engine::Success |
A generic success type.
A generic success type that determines the stabitility of the code. This is recommended to be used as voids that need to check for errors without using try/catch blocks
float Engine::InvSQRT | ( | float | x | ) |
returns the inverse square root of a float
TODO: Use SIMD Instrinsics to accelerate the calculation
x | The float to take the inverse square root of |
Engine::Vec2f Engine::Rotate | ( | Vec2f | v, |
float | angle | ||
) |
Rotates a 2D vector by an angle.
v | The vector to rotate |
angle | The angle to rotate by |
Engine::Vec3f Engine::Rotate | ( | Vec3f | v, |
Vec3f | angle | ||
) |
Rotates a 3D vector in three dimensions.
v | The vector to rotate |
angle | The angles to rotate by |