C# Class Sharpex2D.Math.Matrix

ファイルを表示 Open project: ThuCommix/Sharpex2D

Public Methods

Method Description
Addition ( Matrix other ) : Matrix

Addition with another matrix.

Clone ( ) : object

Clones the Matrix.

CopyTo ( Matrix matrix ) : void

Copys the current Matrix to another matrix.

Divide ( Matrix other ) : Matrix

Divide with another matrix.

Equals ( Matrix other ) : bool

Check if another matrix is equal to the current matrix.

Equals ( object obj ) : bool

Check if another matrix is equal to the current matrix.

Get ( int column, int row ) : double

Gets the value of the element.

GetHashCode ( ) : int

Gets the HashCode.

Matrix ( int columns, int rows ) : System

Initializes a new Matrix class.

Multiply ( Matrix other ) : Matrix

Multiply with another matrix.

Multiply ( double scalar ) : Matrix

Multiply with a scalar.

Pow ( double exponent ) : Matrix

Pow the matrix.

Resize ( int columns, int rows ) : Matrix

Resizes the matrix.

Set ( int column, int row, double value ) : void

Sets a value of the element.

Subtract ( Matrix other ) : Matrix

Substract with another matrix.

ToString ( ) : string

Converts the Matrix in to a string.

Transpose ( ) : Matrix

Transposes the matrix.

operator ( ) : Matrix

Multiplys two matrices.

operator ( ) : bool

Private Methods

Method Description
CheckForNull ( ) : void

Checks for Null.

Method Details

Addition() public method

Addition with another matrix.
public Addition ( Matrix other ) : Matrix
other Matrix The Matrix.
return Matrix

Clone() public method

Clones the Matrix.
public Clone ( ) : object
return object

CopyTo() public method

Copys the current Matrix to another matrix.
public CopyTo ( Matrix matrix ) : void
matrix Matrix The Matrix.
return void

Divide() public method

Divide with another matrix.
public Divide ( Matrix other ) : Matrix
other Matrix The Matrix.
return Matrix

Equals() public method

Check if another matrix is equal to the current matrix.
public Equals ( Matrix other ) : bool
other Matrix The Matrix.
return bool

Equals() public method

Check if another matrix is equal to the current matrix.
public Equals ( object obj ) : bool
obj object The Matrix.
return bool

Get() public method

Gets the value of the element.
public Get ( int column, int row ) : double
column int The Column.
row int The Row.
return double

GetHashCode() public method

Gets the HashCode.
public GetHashCode ( ) : int
return int

Matrix() public method

Initializes a new Matrix class.
public Matrix ( int columns, int rows ) : System
columns int The amount of Columns.
rows int The amount of Rows.
return System

Multiply() public method

Multiply with another matrix.
public Multiply ( Matrix other ) : Matrix
other Matrix The Matrix.
return Matrix

Multiply() public method

Multiply with a scalar.
public Multiply ( double scalar ) : Matrix
scalar double The Scalar.
return Matrix

Pow() public method

Pow the matrix.
public Pow ( double exponent ) : Matrix
exponent double The Exponent.
return Matrix

Resize() public method

Resizes the matrix.
public Resize ( int columns, int rows ) : Matrix
columns int The Columns.
rows int The Rows.
return Matrix

Set() public method

Sets a value of the element.
public Set ( int column, int row, double value ) : void
column int The Column.
row int The Row.
value double The Value.
return void

Subtract() public method

Substract with another matrix.
public Subtract ( Matrix other ) : Matrix
other Matrix The Matrix.
return Matrix

ToString() public method

Converts the Matrix in to a string.
public ToString ( ) : string
return string

Transpose() public method

Transposes the matrix.
public Transpose ( ) : Matrix
return Matrix

operator() public static method

Multiplys two matrices.
public static operator ( ) : Matrix
return Matrix

operator() public static method

public static operator ( ) : bool
return bool