Beispiel #1
0
        /// <summary>
        /// Initializes a new RCMatrix with the specified RCMatrix.
        /// </summary>
        /// <param name="other">The RCMatrix to initialize with.</param>
        public RCMatrix(RCMatrix other)
        {
            this.item00 = other.item00;
            this.item01 = other.item01;
            this.item10 = other.item10;
            this.item11 = other.item11;

            this.determinantCache        = default(CachedValue <RCNumber>);
            this.determinantCacheCreated = false;
            this.inverseCache            = default(CachedValue <RCMatrixInternal>);
            this.inverseCacheCreated     = false;
        }
Beispiel #2
0
 /// <summary>
 /// Checks whether this RCMatrix contains the same components as the specified RCMatrix.
 /// </summary>
 /// <param name="other">The RCMatrix to test.</param>
 /// <returns>True if other RCMatrix has the same components as this RCMatrix.</returns>
 public bool Equals(RCMatrix other)
 {
     return(this.item00 == other.item00 && this.item01 == other.item01 &&
            this.item10 == other.item10 && this.item11 == other.item11);
 }