Ion
|
#include "ion/math/transformutils.h"
#include <cmath>
#include "ion/base/logging.h"
#include "ion/base/static_assert.h"
#include "ion/math/angleutils.h"
#include "ion/math/matrixutils.h"
#include "ion/math/utils.h"
#include "ion/math/vectorutils.h"
Go to the source code of this file.
Namespaces | |
ion | |
Copyright 2016 Google Inc. | |
ion::math | |
Macros | |
#define | ION_INSTANTIATE_FUNCTIONS(type) |
Instantiate functions for supported types. More... | |
Functions | |
template<typename T > | |
const Matrix< 4, T > | ion::math::OrthoInverseH (const Matrix< 4, T > &m) |
Public functions. More... | |
template<typename T > | |
ION_API const Matrix< 4, T > | ion::math::RotationMatrixH (const Rotation< T > &r) |
Returns a 4x4 Matrix representing a 3D rotation. More... | |
template<typename T > | |
ION_API const Matrix< 3, T > | ion::math::RotationMatrixNH (const Rotation< T > &r) |
Returns a 3x3 Matrix representing a 3D rotation. More... | |
template<typename T > | |
ION_API const Matrix< 4, T > | ion::math::LookAtMatrixFromCenter (const Point< 3, T > &eye, const Point< 3, T > ¢er, const Vector< 3, T > &up) |
View matrices. More... | |
template<typename T > | |
ION_API const Matrix< 4, T > | ion::math::LookAtMatrixFromDir (const Point< 3, T > &eye, const Vector< 3, T > &dir, const Vector< 3, T > &up) |
Returns a 4x4 viewing matrix based on the given camera parameters, which use a view direction rather than look at center point. More... | |
template<typename T > | |
ION_API const Matrix< 4, T > | ion::math::OrthographicMatrixFromFrustum (T x_left, T x_right, T y_bottom, T y_top, T z_near, T z_far) |
Projection matrices. More... | |
template<typename T > | |
ION_API const Matrix< 4, T > | ion::math::PerspectiveMatrixFromFrustum (T x_left, T x_right, T y_bottom, T y_top, T z_near, T z_far) |
Returns a 4x4 perspective projection matrix based on the given parameters, which follow the conventions of the old glFrustum() function. More... | |
template<typename T > | |
ION_API const Matrix< 4, T > | ion::math::PerspectiveMatrixFromView (const Angle< T > &fovy, T aspect, T z_near, T z_far) |
Returns a 4x4 perspective projection matrix based on the given parameters, which follow the conventions of the gluPerspective() function. More... | |
template<typename T > | |
ION_API const Matrix< 4, T > | ion::math::PerspectiveMatrixInverse (const Matrix< 4, T > &m) |
Returns the inverse of m iff m is a perspective projection matrix, i.e., iff it has the following form:
[X 0 A 0]
[0 Y B 0]
[0 0 C D]
[0 0 -1 0]
Triggers a DCHECK otherwise. More... | |
ion::math::ION_INSTANTIATE_FUNCTIONS (double) | |
ion::math::ION_INSTANTIATE_FUNCTIONS (float) | |
#define ION_INSTANTIATE_FUNCTIONS | ( | type | ) |
Instantiate functions for supported types.
Definition at line 271 of file transformutils.cc.