FloatingPointMatrix3x2<T>
FloatingPointMatrix3x2<T>::CreateTranslation(const FloatingPointVector2<T>& position) noexcept
{
    FloatingPointMatrix3x2 result;
    CreateTranslation(position, result);
    return std::move(result);
}
Exemple #2
0
/* Translate matrix.
 * ARGUMENTS:
 * - translation arguments by X, Y, Z
 *     float dX, dY, dZ;
 * RETURNS: 
 * - translated matrix 
 *     Matrix &;
 */
Matrix &Matrix::Translate( float dX, float dY, float dZ )
{
  Matrix temp = CreateTranslation(dX, dY, dZ);
  
  temp *= *this;
  *this = temp;

  return *this;
} /* End of 'Translate' function */
Exemple #3
0
Matrix Matrix::CreateTranslation(const Vector3& position)
{
    return CreateTranslation(position.X, position.Y, position.Z);
}
Exemple #4
0
	Matrix Matrix::CreateTranslation(Vector3 pos) {
		return CreateTranslation(pos.X, pos.Y, pos.Z);
	}
void Matrix4::glTranslate(float32 x, float32 y, float32 z)
{
    CreateTranslation(Vector3(x, y, z));
}