|
||
void Scale(double xScale, double yScale, double zScale); void ScaleX(double xScale); void ScaleY(double yScale); void ScaleZ(double zScale);
double xScale; // A double-precision floating-point x-axis scale value double yScale; // A double-precision floating-point y-axis scale value double zScale; // A double-precision floating-point z-axis scale value |
|
|||
Synopsis |
using SilverSharp;
The Scale methods post-multiply a matrix that scales along coordinate axes. The first form scales all 3 axes, while the others are single-axis scalings.
|
|
||
Parameters |
xScale is a scaling factor for the x-axis yScale is a scaling factor for the y-axis zScale is a scaling factor for the z-axis
|
|
||
Return Value |
none
|
|
||
Remarks |
This method post-multiplies a scaling matrix into the SilverSharp.MATRIX object. This means it adds the work of the scale to the transformation.
|
|
||
See Also |
MATRIX, tm_scale_x, tm_scale_y, tm_scale_z
|
|
||
Example |
The following code builds a matrix to scale along the x-axis by 0.5 and the y-axis by 2.0 about a basepoint:
|
|