20#include "../variant/types.h"
The Matrix4f class is 4 X 4 matrix.
Definition matrix.h:226
The class Vector3f inherits from the templated class of Vector3, and the template parameters are spec...
Definition vector.h:322
ViewSpec getViewSpec(const Matrix4f &matrix)
Gets the ViewSpec vectors from a specified matrix.
void setViewSpec(Matrix4f &matrix, const ViewSpec &viewSpec)
Sets the ViewSpec to the matrix, It can change the matrix elements.
std::shared_ptr< Vector3f > Vector3fPtr
Definition types.h:134
void lookAt(Matrix4f &viewMatrix, const Vector3f &eye, const Vector3f &vrp, const Vector3f &up)
Define a structure objec ViewSpec consisting of four member variables, which correspond to 3D vectors...
Definition viewmatrix.h:28
Vector3fPtr eye
Definition viewmatrix.h:32
Vector3fPtr dir
Definition viewmatrix.h:31
Vector3fPtr right
Definition viewmatrix.h:29
Vector3fPtr up
Definition viewmatrix.h:30