Rename RotationQuaternion to be more similar to get_rotation_quaternion

Renames `RotationQuaternion` to be more consistent with `get_rotation_quaternion`
This commit is contained in:
Raul Santos 2021-07-28 15:24:18 +02:00
parent 5330c83690
commit d2655cb131
2 changed files with 3 additions and 3 deletions

View file

@ -207,7 +207,7 @@ namespace Godot
}
}
public Quaternion RotationQuaternion()
public Quaternion GetRotationQuaternion()
{
Basis orthonormalizedBasis = Orthonormalized();
real_t det = orthonormalizedBasis.Determinant();

View file

@ -124,11 +124,11 @@ namespace Godot
/* not sure if very "efficient" but good enough? */
Vector3 sourceScale = basis.Scale;
Quaternion sourceRotation = basis.RotationQuaternion();
Quaternion sourceRotation = basis.GetRotationQuaternion();
Vector3 sourceLocation = origin;
Vector3 destinationScale = transform.basis.Scale;
Quaternion destinationRotation = transform.basis.RotationQuaternion();
Quaternion destinationRotation = transform.basis.GetRotationQuaternion();
Vector3 destinationLocation = transform.origin;
var interpolated = new Transform3D();