Use the CDXBnds scaling functions to expand and scale an object's dimensions by a specified amount about its center.
Member Functions
Expand( TYPE x, TYPE y=0, TYPE z=0, TYPE t=0 ) Adds to the object's dimensions about its center by the specified amount. Expand( const CDXV_C& v ) Adds to the object's dimensions about its center by the specified amount. Scale( TYPE x, TYPE y=1, TYPE z=1, TYPE t=1 ) Scales the object about its center by the specified scaling factors. Scale( const CDXV_C& v ) Scales the object about its center by the specified scaling factors.
Adds to the object's dimensions about its center by the specified amount.
Syntax
void Expand( TYPE x, TYPE y = 0, TYPE z = 0, TYPE t = 0 );
Parameters
- x
- [in] Amount to subtract from the minimum and add to the maximum along the x-dimension.
- y
- [in] Amount to subtract from the minimum and add to the maximum along the y-dimension.
- z
- [in] Amount to subtract from the minimum and add to the maximum along the z-dimension.
- t
- [in] Amount to subtract from the minimum and add to the maximum along the t-dimension.
Return Value
No return value.
Adds to the object's dimensions about its center by the specified amount.
Syntax
void Expand( const CDXV_C &v );
Parameters
- v
- [in] Vector containing the amount to subtract from the minimum and add to the maximum along each dimension.
Return Value
No return value.
Scales the object about its center by the specified scaling factors.
Syntax
void Scale( TYPE x, TYPE y = 1, TYPE z = 1, TYPE t = 1 );
Parameters
- x
- [in] X scaling factor.
- y
- [in] Y scaling factor.
- z
- [in] Z scaling factor.
- t
- [in] T scaling factor.
Return Value
No return value.
Scales the object about its center by the specified scaling factors.
Syntax
void Scale( const CDXV_C &v );
Parameters
- v
- [in] Vector containing the scaling factors for each dimension.
Return Value
No return value.
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.