Spore/MathUtils.h file

Contents

Namespaces

namespace Math
Basic mathematical objects and functions, such as vectors, random numbers,...

Classes

struct Math::Color
An ARGB color represented by a 32 bit integer value.
struct Math::Vector2
A vector of 2 float values (x, y).
struct Math::Vector3
A vector of 3 float values (x, y, z).
struct Math::Vector4
A vector of 4 float values (x, y, z, w).
struct Math::Quaternion
A vector of 4 float values (x, y, z, w) representing a quaternion rotation; same as a Vector4.
struct Math::Point
Represents a point in the space, defined by two float coordinates (x, y).
union Math::Rectangle
Represents a rectangular space, defined by two points or by the four edges.
struct Math::Dimensions
A pair of two float values that represents the dimensions of an image (width, height).
struct Math::IntDimensions
A pair of two integer values that represents the dimensions of an image (width, height).
struct Math::ColorRGB
Three float values in the range [0, 1] that represent a color (the red, green and blue components).
struct Math::ColorRGBA
Four float values in the range [0, 1] that represent a color (the red, green, blue and alpha components).
struct Math::ColorHSV
Three float values that represent a color (the hue, saturation and value/brightness values).
struct Math::Matrix3
A 3x3 matrix.
struct Math::Matrix4
A 4x4 matrix.
struct Math::BoundingBox
A pair of two Vector3 that define the boundaries of an object (the minimum point and the maximum point in the space).
struct Math::RandomNumberGenerator

Functions

auto Addresses(Math) -> namespace