V+ Language Reference Guide, v
SCALE transformation function
Syntax
SCALE (transformation BY scale_factor)
Function
Return a transformation value equal to the transformation parameter with the position scaled by the scale factor.
Parameters
transformation Transformation expression that is to be scaled. scale_factor Real-valued expression that is used to scale the transformation parameter value. Details
The value returned is equal to the value of the input transformation parameter value except that the X, Y, and Z position components are multiplied by the scale factor parameter. The rotation components have their values unchanged.
Example
If the transformation x has the value:
(200, 150, 100, 10, 20, 30)then executing the instruction:
SET y = SCALE(x BY 1.25)results in the transformation y receiving the value:
(250, 187.5, 125, 10, 20, 30)Related Keyword
SHIFT transformation function
Submit comments to: techpubs@adept.com
Last modified on: 1/11/2012
Copyright © 1994 - 2011. Adept Technology, Inc.
