Skip to content

Commit

Permalink
[Graphics] - Removed superfluous by reference params on some camera m…
Browse files Browse the repository at this point in the history
…ethods.
  • Loading branch information
Tape-Worm committed May 3, 2022
1 parent 1a3dd65 commit 69e447b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public void RotateEuler(float yaw, float pitch, float roll)
/// </summary>
/// <param name="axis">The axes to rotate around.</param>
/// <param name="angle">The angle of rotation, in degrees.</param>
public void RotateAxis(ref Vector3 axis, float angle)
public void RotateAxis(Vector3 axis, float angle)
{
_rotationQuat = Quaternion.Conjugate(Quaternion.CreateFromAxisAngle(axis, angle.ToRadians()));
Changes |= CameraChange.View | CameraChange.Rotation;
Expand All @@ -180,7 +180,7 @@ public void RotateAxis(ref Vector3 axis, float angle)
/// Function to set the camera rotation using a rotation matrix.
/// </summary>
/// <param name="rotation">The matrix used for rotation.</param>
public void AssignRotationMatrix(ref Matrix4x4 rotation)
public void AssignRotationMatrix(in Matrix4x4 rotation)
{
_rotationQuat = Quaternion.Conjugate(Quaternion.CreateFromRotationMatrix(rotation));
Changes |= CameraChange.View | CameraChange.Rotation;
Expand Down

0 comments on commit 69e447b

Please sign in to comment.