|
ToyMaker Game Engine 0.0.2
ToyMaker is a game engine developed and maintained by Zoheb Shujauddin.
|
Contains a couple of classes not tied to any part of the engine in particular, but useful to those parts all the same. More...
#include <glm/glm.hpp>Go to the source code of this file.
Classes | |
| class | ToyMaker::RangeMapperLinear |
| A simple linear interpolation implementation between a fixed input and output range. More... | |
Namespaces | |
| namespace | ToyMaker |
| Namespace containing all class definitions and functions related to the ToyMaker engine. | |
Functions | |
| glm::mat4 | ToyMaker::buildModelMatrix (glm::vec4 position, glm::quat orientation, glm::vec3 scale=glm::vec3{1.f, 1.f, 1.f}) |
| Converts a position, orientation and scale into its model matrix equivalent. | |
| float | ToyMaker::squareDistance (const glm::vec3 &vector) |
| Returns the square of the length of a 3 component vector. | |
| bool | ToyMaker::isFinite (float number) |
| Tests whether a given number is finite. | |
| bool | ToyMaker::isFinite (const glm::vec3 &vector) |
| Tests whether a set of 3 numbers is finite. | |
| bool | ToyMaker::isPositiveStrict (float number) |
| Tests whether a number is strictly positive. | |
| bool | ToyMaker::isPositiveStrict (const glm::vec3 &vector) |
| Tests whether a set of 3 numbers is strictly positive. | |
| bool | ToyMaker::isNumber (float number) |
| Tests whether a float is really a number (as opposed to a special error representation). | |
| bool | ToyMaker::isNumber (const glm::vec3 &vector) |
| Tests whether a set of 3 numbers are really numbers (as opposed to special error representations). | |
| bool | ToyMaker::isNonNegative (float number) |
| Tests whether a number is non-negative. | |
| bool | ToyMaker::isNonNegative (const glm::vec3 &vector) |
| Tests whether a set of numbers is non-negative. | |
| glm::quat | ToyMaker::getRotation (const glm::vec3 &from, const glm::vec3 &to) |
| Returns the rotation between two vectors represented as a quaternion. | |
| float | ToyMaker::getAngle (const glm::vec3 &from, const glm::vec3 &to, const glm::vec3 &axis) |
| Gets angle between two vectors about an axis vector in the range [-Pi, Pi]. | |
| glm::vec3 | ToyMaker::getOrthogonal (const glm::vec3 &from) |
| Given some arbitrary non-zero vector, returns a normalized vector that is orthogonal to it. | |
| std::pair< glm::vec3, glm::vec3 > | ToyMaker::getTangents (const glm::vec3 &vector) |
| Returns a pair of normalized tangents to an input vector. | |
| bool | ToyMaker::isSensible (const glm::mat3 &matrix) |
| Determines whether a particular matrix is valid and finite. | |
| glm::mat4 | ToyMaker::getScaleMatrix (const glm::mat4 &fromTransform) |
| Given a transform, returns scale matrix that was used to compose the transform. | |
| glm::mat4 | ToyMaker::getRotationMatrix (const glm::mat4 &fromTransform) |
| Given a transform, returns rotation matrix that was used to compose the transform. | |
| glm::mat4 | ToyMaker::getTranslationMatrix (const glm::mat4 &fromTransform) |
| Given a transform, returns translation matrix that was used to compose the transform. | |
Contains a couple of classes not tied to any part of the engine in particular, but useful to those parts all the same.