|  | ||
| 
 | 
 double GetMagnitude(); 
 
 
 
 | 
 | ||
| Synopsis | using SilverSharp; 
 The GetMagnitude method measures the distance from the w-space origin (0,0,0) to the 3D point stored in the SilverSharp.SS_XYZ object. 
 | 
 | ||
| Parameters | none 
 | 
 | ||
| Return Value | GetMagnitude returns the distance of the 3D point from the origin. 
 | 
 | ||
| Remarks | Given an x, y, and z-coordinate the magnitude is computed as follows: 
 sqrt( (x * x) + (y * y) + (z * z) ); 
 | 
 | ||
| See Also | 
 | 
 | ||
| Example | The following code measures the magnitude of the 3D vector 5,0,0: 
 
 
 
 
 | 
 |