SilverScreen Solid Modeler

MATRIX method

MATRIX method

Previous topic Next topic  

MATRIX method

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

MATRIX();

MATRIX(MATRIX m);

 

MATRIX m;   // A matrix object

 

 

 




Synopsis

using SilverSharp;

 

The MATRIX constructors create a SilverSharp.MATRIX object. The first form creates an identity matrix and the second form is a copy-constructor that creates a copy of the supplied matrix.

 

 

Parameters

m is a SilverSharp.MATRIX object that is to be copied by the constructor.

 

 

Return Value

none

 

 

See Also

MATRIX

 

 

Example

The following code shows how to construct a SilverSharp.MATRIX object:

 

C# Code

 

 using SilverSharp;

 

 . . .

 

 MATRIX mx1 = new MATRIX();   // Create an identity matrix

 

 mx1.Scale(0.5, 0.5, 1.0);    // mx1 now scales x and y by 0.5

 

 MATRIX mx2 = new MATRIX(mx1);  // Create a copy of mx1