API Reference > OdGe Classes > OdGeScale3d Class > OdGeScale3d Methods > setToProduct Method > OdGeScale3d::setToProduct Method (OdGeScale3d&, double)
OdGeScale3d::setToProduct Method (OdGeScale3d&, double)
Syntax
C++
OdGeScale3d& setToProduct(const OdGeScale3d& scaleVec, double factor);
Parameters 
Description 
const OdGeScale3d& scaleVec 
[in] Any 3D scale vector that is multiplied with the provided scale uniform scale factor. 
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 * [xs ys zs] = [scl*xs scl*ys scl*zs] [xs1 ys1 zs1] * [xs2 ys2 zs2] = [xs1*xs2 ys1*ys2 zs1*zs2]

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