Browse Source

Added typedefs for double-precision vector and matrix types.

pull/7/head
Vladimír Vondruš 13 years ago
parent
commit
62ec12cf75
  1. 29
      src/Magnum.h
  2. 2
      src/Math/Matrix3.h
  3. 3
      src/Math/Matrix4.h
  4. 2
      src/Math/Vector2.h
  5. 2
      src/Math/Vector3.h
  6. 2
      src/Math/Vector4.h

29
src/Magnum.h

@ -65,13 +65,13 @@ using Corrade::Utility::Warning;
using Corrade::Utility::Error;
#endif
/** @brief Two-component floating-point vector */
/** @brief Two-component float vector */
typedef Math::Vector2<GLfloat> Vector2;
/** @brief Three-component floating-point vector */
/** @brief Three-component float vector */
typedef Math::Vector3<GLfloat> Vector3;
/** @brief Four-component floating-point vector */
/** @brief Four-component float vector */
typedef Math::Vector4<GLfloat> Vector4;
/** @brief Two-component signed integer vector */
@ -92,18 +92,37 @@ typedef Math::Vector3<GLuint> Vector3ui;
/** @brief Four-component unsigned integer vector */
typedef Math::Vector4<GLuint> Vector4ui;
#ifndef MAGNUM_TARGET_GLES
/** @brief Two-component double vector */
typedef Math::Vector2<GLdouble> Vector2d;
/** @brief Three-component double vector */
typedef Math::Vector3<GLdouble> Vector3d;
/** @brief Four-component double vector */
typedef Math::Vector4<GLdouble> Vector4d;
#endif
/** @brief Two-dimensional floating-point homogeneous coordinates */
typedef Math::Point2D<GLfloat> Point2D;
/** @brief Three-dimensional floating-point homogeneous coordinates */
typedef Math::Point3D<GLfloat> Point3D;
/** @brief 3x3 floating-point matrix */
/** @brief 3x3 float matrix */
typedef Math::Matrix3<GLfloat> Matrix3;
/** @brief 4x4 floating-point matrix */
/** @brief 4x4 float matrix */
typedef Math::Matrix4<GLfloat> Matrix4;
#ifndef MAGNUM_TARGET_GLES
/** @brief 3x3 double matrix */
typedef Math::Matrix3<GLdouble> Matrix3d;
/** @brief 4x4 double matrix */
typedef Math::Matrix4<GLdouble> Matrix4d;
#endif
/** @brief Quaternion */
typedef Math::Quaternion<GLfloat> Quaternion;

2
src/Math/Matrix3.h

@ -29,7 +29,7 @@ namespace Magnum { namespace Math {
@tparam T Underlying data type
Represents 2D transformation. See @ref matrix-vector for brief introduction.
@see Magnum::Matrix3, SceneGraph::MatrixTransformation2D
@see Magnum::Matrix3, Magnum::Matrix3d, SceneGraph::MatrixTransformation2D
@configurationvalueref{Magnum::Math::Matrix3}
*/
template<class T> class Matrix3: public Matrix<3, T> {

3
src/Math/Matrix4.h

@ -34,7 +34,8 @@ namespace Magnum { namespace Math {
@tparam T Underlying data type
Represents 3D transformation. See @ref matrix-vector for brief introduction.
@see Magnum::Matrix4, DualQuaternion, SceneGraph::MatrixTransformation3D
@see Magnum::Matrix4, Magnum::Matrix4d, DualQuaternion,
SceneGraph::MatrixTransformation3D
@configurationvalueref{Magnum::Math::Matrix4}
*/
template<class T> class Matrix4: public Matrix<4, T> {

2
src/Math/Vector2.h

@ -28,7 +28,7 @@ namespace Magnum { namespace Math {
@tparam T Data type
See @ref matrix-vector for brief introduction.
@see Magnum::Vector2, Magnum::Vector2i, Magnum::Vector2ui
@see Magnum::Vector2, Magnum::Vector2i, Magnum::Vector2ui, Magnum::Vector2d
@configurationvalueref{Magnum::Math::Vector2}
*/
template<class T> class Vector2: public Vector<2, T> {

2
src/Math/Vector3.h

@ -30,7 +30,7 @@ namespace Magnum { namespace Math {
See @ref matrix-vector for brief introduction. See also Point2D for
homogeneous two-dimensional coordinates.
@see Magnum::Vector3, Magnum::Vector3i, Magnum::Vector3ui
@see Magnum::Vector3, Magnum::Vector3i, Magnum::Vector3ui, Magnum::Vector3d
@configurationvalueref{Magnum::Math::Vector3}
*/
template<class T> class Vector3: public Vector<3, T> {

2
src/Math/Vector4.h

@ -29,7 +29,7 @@ namespace Magnum { namespace Math {
See @ref matrix-vector for brief introduction. See also Point3D for
homogeneous three-dimensional coordinates.
@see Magnum::Vector4, Magnum::Vector4i, Magnum::Vector4ui
@see Magnum::Vector4, Magnum::Vector4i, Magnum::Vector4ui, Magnum::Vector4d
@configurationvalueref{Magnum::Math::Vector4}
*/
template<class T> class Vector4: public Vector<4, T> {

Loading…
Cancel
Save