expose col 4 0-3 for translation info
This commit is contained in:
@@ -44,22 +44,35 @@ namespace PveTeam.Mathematics
|
|||||||
M43 = m43;
|
M43 = m43;
|
||||||
M44 = m44;
|
M44 = m44;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Instance methods
|
#region Instance fields
|
||||||
#endregion
|
public Vector3D Translation
|
||||||
|
{
|
||||||
|
get => new Vector3D(M41, M42, M43);
|
||||||
|
set
|
||||||
|
{
|
||||||
|
M41 = value.X;
|
||||||
|
M42 = value.Y;
|
||||||
|
M43 = value.Z;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region Static methods
|
#region Instance methods
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Operators
|
#region Static methods
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Operator methods
|
#region Operators
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Equals
|
#region Operator methods
|
||||||
public override int GetHashCode()
|
#endregion
|
||||||
|
|
||||||
|
#region Equals
|
||||||
|
public override int GetHashCode()
|
||||||
=> M11.GetHashCode() + M12.GetHashCode() + M13.GetHashCode() + M14.GetHashCode()
|
=> M11.GetHashCode() + M12.GetHashCode() + M13.GetHashCode() + M14.GetHashCode()
|
||||||
+ M21.GetHashCode() + M22.GetHashCode() + M23.GetHashCode() + M24.GetHashCode()
|
+ M21.GetHashCode() + M22.GetHashCode() + M23.GetHashCode() + M24.GetHashCode()
|
||||||
+ M31.GetHashCode() + M32.GetHashCode() + M33.GetHashCode() + M34.GetHashCode()
|
+ M31.GetHashCode() + M32.GetHashCode() + M33.GetHashCode() + M34.GetHashCode()
|
||||||
|
Reference in New Issue
Block a user