API Reference > OdGe Classes > OdGeScale2d Class > OdGeScale2d Methods > setToProduct Method > OdGeScale2d::setToProduct Method (OdGeScale2d&, double)
OdGeScale2d::setToProduct Method (OdGeScale2d&, double)
Syntax
C++
OdGeScale2d& setToProduct(const OdGeScale2d& scaleVec, double factor);
Parameters 
Description 
const OdGeScale2d& scaleVec 
[in] Any 2D scale vector that is multiplied by .  
double factor 
[in] Uniform scale factor. 

Sets this scale vector to the product factor * scaleVec, and returns a reference to this scale vector. 

 

Multiplication of scale vectors is defined as follows: 

scl * [xs1 ys1] = [scl*xs1 scl*ys1] [xs1 ys1 ] * [xs2 ys2] = [xs1*xs2 ys1*ys2]

Copyright © 2002–2020. Open Design Alliance. All rights reserved.