Exemplo n.º 1
0
        public int IsOrthonormalRH(float threshold = 0.001f)
        {
            var a = (int)System.Convert.ChangeType(Column0.IsEquivalent(Column1 % Column2, threshold), typeof(int));
            var b = (int)System.Convert.ChangeType(Column1.IsEquivalent(Column2 % Column0, threshold), typeof(int));
            var c = (int)System.Convert.ChangeType(Column2.IsEquivalent(Column0 % Column1, threshold), typeof(int));

            return(a & b & c);
        }
 public void Dispose()
 {
     Column1?.Dispose();
     Column2?.Dispose();
     Column3?.Dispose();
     Column4?.Dispose();
     Column5?.Dispose();
     Column0?.Dispose();
     Column6?.Dispose();
     Column7?.Dispose();
     Column8?.Dispose();
     Column9?.Dispose();
     Column10?.Dispose();
     Column11?.Dispose();
     Column12?.Dispose();
     Column13?.Dispose();
     Column14?.Dispose();
     Column15?.Dispose();
     Column16?.Dispose();
     Column17?.Dispose();
     Column18?.Dispose();
     Column19?.Dispose();
     Column20?.Dispose();
     Column21?.Dispose();
     Column22?.Dispose();
     Column23?.Dispose();
     Column24?.Dispose();
     Column25?.Dispose();
     Column26?.Dispose();
     Column27?.Dispose();
     Column28?.Dispose();
     Column29?.Dispose();
     Column30?.Dispose();
     Column31?.Dispose();
     Column32?.Dispose();
     Column33?.Dispose();
     Column34?.Dispose();
     Column35?.Dispose();
     Column36?.Dispose();
     Column37?.Dispose();
     Column38?.Dispose();
     Column39?.Dispose();
     Column40?.Dispose();
     Column41?.Dispose();
     Column42?.Dispose();
     Column43?.Dispose();
     Column44?.Dispose();
     Column45?.Dispose();
     Column46?.Dispose();
     Column47?.Dispose();
     Column48?.Dispose();
     Column49?.Dispose();
     Column50?.Dispose();
     Column51?.Dispose();
     Column52?.Dispose();
 }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = Column0.GetHashCode() * 31 + Column1.GetHashCode();
         hash = hash * 31 + Column2.GetHashCode();
         hash = hash * 31 + Column3.GetHashCode();
         return(hash);
     }
 }
Exemplo n.º 4
0
 public IEnumerable <WidgetData> AllWidgetData()
 {
     return(Column0.Union(Column1).Union(Column2));
 }
Exemplo n.º 5
0
 public bool Equals(Matrix4x4 other)
 {
     return(Column0.Equals(other.Column0) && Column1.Equals(other.Column1) && Column2.Equals(other.Column2) && Column3.Equals(other.Column3));
 }
Exemplo n.º 6
0
 public bool IsValid()
 {
     return(Column0.IsValid() && Column1.IsValid() && Column2.IsValid() && Column3.IsValid());
 }