Cleanup 8
This commit is contained in:
@@ -270,12 +270,10 @@ namespace FlaxEngine
|
||||
/// <returns>The projected vector.</returns>
|
||||
public Vector3 Project(Vector3 source, Matrix projection, Matrix view, Matrix world)
|
||||
{
|
||||
Matrix matrix;
|
||||
Matrix.Multiply(ref world, ref view, out matrix);
|
||||
Matrix.Multiply(ref world, ref view, out Matrix matrix);
|
||||
Matrix.Multiply(ref matrix, ref projection, out matrix);
|
||||
|
||||
Vector3 vector;
|
||||
Project(ref source, ref matrix, out vector);
|
||||
Project(ref source, ref matrix, out Vector3 vector);
|
||||
return vector;
|
||||
}
|
||||
|
||||
@@ -310,13 +308,11 @@ namespace FlaxEngine
|
||||
/// <returns>The unprojected Vector.</returns>
|
||||
public Vector3 Unproject(Vector3 source, Matrix projection, Matrix view, Matrix world)
|
||||
{
|
||||
Matrix matrix;
|
||||
Matrix.Multiply(ref world, ref view, out matrix);
|
||||
Matrix.Multiply(ref world, ref view, out Matrix matrix);
|
||||
Matrix.Multiply(ref matrix, ref projection, out matrix);
|
||||
Matrix.Invert(ref matrix, out matrix);
|
||||
|
||||
Vector3 vector;
|
||||
Unproject(ref source, ref matrix, out vector);
|
||||
Unproject(ref source, ref matrix, out Vector3 vector);
|
||||
return vector;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user