API Reference > OdGe Classes > OdGeScale2d Class > OdGeScale2d Methods > setToProduct Method > OdGeScale2d::setToProduct Method (OdGeScale2d&, OdGeScale2d&)
OdGeScale2d::setToProduct Method (OdGeScale2d&, OdGeScale2d&)
Syntax
C++
OdGeScale2d& setToProduct(const OdGeScale2d& scaleVec1, const OdGeScale2d& scaleVec2);
Parameters 
Description 
const OdGeScale2d& scaleVec1 
[in] Any 2D scale vector.  
const OdGeScale2d& scaleVec2 
[in] Any 2D scale vector. 

Sets this scale vector to the product scaleVec1 * scaleVec2 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.