Lines Matching refs:Matrix4

12 Matrix4::Matrix4()
20 Matrix4::Matrix4(float m00, float m01, float m02, float m03,
31 Matrix4 Matrix4::identity()
33 return Matrix4(1.0f, 0.0f, 0.0f, 0.0f,
39 Matrix4 Matrix4::rotate(float angle, const Vector3 &p)
46 return Matrix4( cos_t + (u.x * u.x * (1.0f - cos_t)), (u.x * u.y * (1.0f - cos_t)) - (u.z * sin_t), (u.x * u.z * (1.0f - cos_t)) + (u.y * sin_t), 0.0f,
52 Matrix4 Matrix4::translate(const Vector3 &t)
54 return Matrix4(1.0f, 0.0f, 0.0f, t.x,
60 Matrix4 Matrix4::scale(const Vector3 &s)
62 return Matrix4( s.x, 0.0f, 0.0f, 0.0f,
68 Matrix4 Matrix4::frustum(float l, float r, float b, float t, float n, float f)
70 return Matrix4((2.0f * n) / (r - l), 0.0f, (r + l) / (r - l), 0.0f,
76 Matrix4 Matrix4::perspective(float fovY, float aspectRatio, float nearZ, float farZ)
83 Matrix4 Matrix4::ortho(float l, float r, float b, float t, float n, float f)
85 return Matrix4(2.0f / (r - l), 0.0f, 0.0f, -(r + l) / (r - l),
91 Matrix4 Matrix4::rollPitchYaw(float roll, float pitch, float yaw)
98 Matrix4 Matrix4::invert(const Matrix4 &mat)
100 Matrix4 inverted( mat.data[ 5] * mat.data[10] * mat.data[15] - mat.data[5] * mat.data[11] * mat.data[14] - mat.data[ 9] * mat.data[ 6] * mat.data[15] + mat.data[ 9] * mat.data[ 7] * mat.data[14] + mat.data[13] * mat.data[ 6] * mat.data[11] - mat.data[13] * mat.data[ 7] * mat.data[10],
131 Matrix4 Matrix4::transpose(const Matrix4 &mat)
133 return Matrix4(mat.data[ 0], mat.data[ 1], mat.data[ 2], mat.data[ 3],
139 Vector3 Matrix4::transform(const Matrix4 &mat, const Vector3 &pt)
145 Vector3 Matrix4::transform(const Matrix4 &mat, const Vector4 &pt)
151 Matrix4 operator*(const Matrix4 &a, const Matrix4 &b)
153 return Matrix4(a.data[ 0] * b.data[ 0] + a.data[ 4] * b.data[ 1] + a.data[ 8] * b.data[ 2] + a.data[12] * b.data[ 3],
171 Matrix4 &operator*=(Matrix4 &a, const Matrix4 &b)
177 Matrix4 operator*(const Matrix4 &a, float b)
179 Matrix4 ret(a);
187 Matrix4 &operator*=(Matrix4 &a, float b)
196 Vector4 operator*(const Matrix4 &a, const Vector4 &b)
204 bool operator==(const Matrix4 &a, const Matrix4 &b)
216 bool operator!=(const Matrix4 &a, const Matrix4 &b)