add gethashcode for transformation matrix

This commit is contained in:
Eliot Jones
2017-11-30 23:49:53 +00:00
parent 90b67586dc
commit ced3a86293

View File

@@ -2,6 +2,7 @@
{
using System;
using Geometry;
using System.Collections.Generic;
/// <summary>
/// Specifies the conversion from the transformed coordinate space to the original untransformed coordinate space.
@@ -153,6 +154,14 @@
return true;
}
public override int GetHashCode()
{
var hashCode = 1113510858;
hashCode = hashCode * -1521134295 + base.GetHashCode();
hashCode = hashCode * -1521134295 + EqualityComparer<decimal[]>.Default.GetHashCode(value);
return hashCode;
}
public override string ToString()
{
return $"{A}, {B}, 0\r\n{C}, {D}, 0\r\n{E}, {F}, 1";