Provides classes for vectors, matrices, segments, bounding boxes, etc. More...
Classes | |
struct | ork::box2< type > |
A 2D bounding box. More... | |
struct | ork::box3< type > |
A 3D bounding box. More... | |
struct | ork::half |
A 16-bit floating point number. More... | |
class | ork::mat2< type > |
A 2x2 matrix. More... | |
class | ork::mat3< type > |
A 3x3 matrix. More... | |
class | ork::mat4< type > |
A 4x4 matrix. More... | |
class | ork::quat< type > |
A templated quaternion class. More... | |
class | ork::vec2< type > |
A 2D vector. More... | |
class | ork::vec3< type > |
A 3D vector. More... | |
class | ork::vec4< type > |
A 4D vector. More... | |
Typedefs | |
typedef box2< int > | ork::box2i |
A 2D bounding box with int coordinates. | |
typedef box2< float > | ork::box2f |
A 2D bounding box with float coordinates. | |
typedef box2< double > | ork::box2d |
A 2D bounding box with double coordinates. | |
typedef box3< int > | ork::box3i |
A 3D bounding box with int coordinates. | |
typedef box3< float > | ork::box3f |
A 3D bounding box with float coordinates. | |
typedef box3< double > | ork::box3d |
A 3D bounding box with double coordinates. | |
typedef mat2< float > | ork::mat2f |
A 2x2 matrix with float components. | |
typedef mat2< double > | ork::mat2d |
A 2x2 matrix with double components. | |
typedef mat3< float > | ork::mat3f |
A 3x3 matrix with float components. | |
typedef mat3< double > | ork::mat3d |
A 3x3 matrix with double components. | |
typedef mat4< float > | ork::mat4f |
A 4x4 matrix with float components. | |
typedef mat4< double > | ork::mat4d |
A 4x4 matrix with double components. | |
typedef quat< float > | ork::quatf |
Quaternion using float. | |
typedef quat< double > | ork::quatd |
Quaternion using double. | |
typedef vec2< half > | ork::vec2h |
A 2D vector with half float coordinates. | |
typedef vec2< float > | ork::vec2f |
A 2D vector with float coordinates. | |
typedef vec2< double > | ork::vec2d |
A 2D vector with double coordinates. | |
typedef vec2< int > | ork::vec2i |
A 2D vector with int coordinates. | |
typedef vec3< half > | ork::vec3h |
A 3D vector with half float coordinates. | |
typedef vec3< float > | ork::vec3f |
A 3D vector with float coordinates. | |
typedef vec3< double > | ork::vec3d |
A 3D vector with double coordinates. | |
typedef vec3< int > | ork::vec3i |
A 3D vector with int coordinates. | |
typedef vec4< half > | ork::vec4h |
A 4D vector with half float coordinates. | |
typedef vec4< float > | ork::vec4f |
A 4D vector with float coordinates. | |
typedef vec4< double > | ork::vec4d |
A 4D vector with double coordinates. | |
typedef vec4< int > | ork::vec4i |
A 4D vector with int coordinates. | |
Functions | |
ORK_API unsigned short | ork::floatToHalf (float x) |
Converts a float to its half-float representation. | |
ORK_API float | ork::halfToFloat (unsigned short h) |
Converts a half-float representation back to a float. |
Provides classes for vectors, matrices, segments, bounding boxes, etc.
typedef box2<double> ork::box2d |
A 2D bounding box with double coordinates.
typedef box2<float> ork::box2f |
A 2D bounding box with float coordinates.
typedef box2<int> ork::box2i |
A 2D bounding box with int coordinates.
typedef box3<double> ork::box3d |
A 3D bounding box with double coordinates.
typedef box3<float> ork::box3f |
A 3D bounding box with float coordinates.
typedef box3<int> ork::box3i |
A 3D bounding box with int coordinates.
typedef mat2<double> ork::mat2d |
A 2x2 matrix with double components.
typedef mat2<float> ork::mat2f |
A 2x2 matrix with float components.
typedef mat3<double> ork::mat3d |
A 3x3 matrix with double components.
typedef mat3<float> ork::mat3f |
A 3x3 matrix with float components.
typedef mat4<double> ork::mat4d |
A 4x4 matrix with double components.
typedef mat4<float> ork::mat4f |
A 4x4 matrix with float components.
typedef quat<double> ork::quatd |
Quaternion using double.
typedef quat<float> ork::quatf |
Quaternion using float.
typedef vec2<double> ork::vec2d |
A 2D vector with double coordinates.
typedef vec2<float> ork::vec2f |
A 2D vector with float coordinates.
typedef vec2<half> ork::vec2h |
A 2D vector with half float coordinates.
typedef vec2<int> ork::vec2i |
A 2D vector with int coordinates.
typedef vec3<double> ork::vec3d |
A 3D vector with double coordinates.
typedef vec3<float> ork::vec3f |
A 3D vector with float coordinates.
typedef vec3<half> ork::vec3h |
A 3D vector with half float coordinates.
typedef vec3<int> ork::vec3i |
A 3D vector with int coordinates.
typedef vec4<double> ork::vec4d |
A 4D vector with double coordinates.
typedef vec4<float> ork::vec4f |
A 4D vector with float coordinates.
typedef vec4<half> ork::vec4h |
A 4D vector with half float coordinates.
typedef vec4<int> ork::vec4i |
A 4D vector with int coordinates.
ORK_API unsigned short ork::floatToHalf | ( | float | x | ) |
Converts a float to its half-float representation.
Expect inaccuracies and infinities to occur.
ORK_API float ork::halfToFloat | ( | unsigned short | h | ) |
Converts a half-float representation back to a float.