API Reference > OdGe Classes > OdGeScale2d Class
OdGeScale2d Class
OdGeScale2d
Syntax
C++
class OdGeScale2d;

GeScale2d.h

This class represents scaling transformations (scale vectors) in 2D space.

OdGeScale2d may be viewed as an array[2] of doubles. 

Corresponding C++ library: TD_Ge 

 

 
Name 
Description 
 
This is the overview for the OdGeScale2d constructor overload. 
 
Name 
Description 
 
Multplicitive identity vector. 
 
sx 
X scale *factor*. 
 
sy 
Y scale *factor*. 
 
Name 
Description 
 
Returns the scale vector corresponding to the lengths of the column vectors of the transformation matrix.
 
 
Returns the transformation matrix equivalent to this scale vector.
 
 
Returns the inverse of this scale vector. 
 
Sets this scale vector to its inverse, and returns a reference to this scale vector. 
 
Returns true if and only if scaleVec is identical to this one, within the specified tolerance.
 
 
Returns true if and only if the scaling matrix corresponding to this scale vector isUniScaledOrtho().
 
 
Sets this scale vector to the product (this scale vector) * (rightSide), and returns a reference to this scale vector.
 
 
Sets this scale vector to the product leftSide * (this scale vector), and returns a reference to this scale vector.
 
 
Returns the scale vector corresponding to the lengths of the column vectors of the transformation matrix, and sets the scale factor of the matrix to 1 .
 
 
set 
Sets this scale vector to the specified X and Y factors, and returns a reference to this vector.
 
 
This is the overview for the setToProduct method overload. 
 
Name 
Description 
 
!= 
Inequality operator for the OdGeScale2d object. Returns true if this scale vector is not equal to the input scale vector.
 
 
* 
This is the overview for the * operator overload. 
 
*= 
This is the overview for the *= operator overload. 
 
[] 
This is the overview for the [] operator overload. 
 
== 
Equality operator for the OdGeScale2d object. Returns true if this scale vector is equal to the input scale vector.
 
 
Returns the equivalent 2D tranformation matrix. or a 3D scale vector [sx sy 1]. 
 
This is OdGeScale3d, a member of class OdGeScale2d. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.