SilverScreen Solid Modeler

Normalize method

Normalize method

Previous topic Next topic  

Normalize method

Previous topic Next topic JavaScript is required for the print function  

 

SilverSharpAPI

 

bool Normalize();

 

 

 

 

 




Synopsis

using SilverSharp;

 

The Normalize method uniformly scales the plane equation such that the magnitude of the direction vector becomes 1

 

 

Parameters

none

 

 

Return Value

Normalize returns true if successful and false otherwise

 

 

Remarks

If Normalize succeeds, then the new direction vector will reside on the same line that is formed by the original direction vector

 

 

See Also

SS_COEF

 

 

Example

The following code creates a SilverSharp.SS_COEF object and normalizes the plane equation:

 

C# Code

 

 using SilverSharp;

 

 . . .

 

 SS_COEF coef = new SS_COEF(10.0, 0.0, 0.0, 0.0);

 

 coef.Normalize();  // A = 1, B = 0, C = 0, D = 0