Exemple #1
0
 public TypeMatrixLayout(TypeMatrix matrixType,
                         MatrixOrientation matrixOrientation = MatrixOrientation.ColMajor, uint?columnStride = null)
 {
     _matrixType       = matrixType;
     MatrixOrientation = matrixOrientation;
     _columnStride     = columnStride;
 }
Exemple #2
0
        public override int GetHashCode()
        {
            var hashCode = ColumnType.GetHashCode();

            hashCode = (hashCode * 397) ^ ColumnCount.GetHashCode();
            hashCode = (hashCode * 397) ^ ColumnStride.GetHashCode();
            hashCode = (hashCode * 397) ^ MatrixOrientation.GetHashCode();
            return(hashCode);
        }
 private void Rotate(bool clockwise)
 {
     orientation = clockwise ? orientation.Next() : orientation.Previous();
     Debug.Log($"Orientation is now {orientation}");
 }