|
CFx SDK Documentation 2024 SP0
|
#include <GeScale2d.h>
Public Attributes | |
| double | sx |
| double | sy |
Static Public Attributes | |
| static GE_STATIC_EXPORT const OdGeScale2d | kIdentity |
Friends | |
| OdGeScale2d | operator* (double factor, const OdGeScale2d &scaleVec) |
This class represents scaling transformations (scale vectors) in 2D space.
Corresponding C++ library: TD_Ge
<group OdGe_Classes>
Definition at line 46 of file GeScale2d.h.
| OdGeScale2d::OdGeScale2d | ( | ) |
Default constructor for the OdGeScale2d class.
| OdGeScale2d::OdGeScale2d | ( | double | factor | ) |
Constructor for the OdGeScale2d class.
| factor | [in] Uniform scale factor. |
| OdGeScale2d::OdGeScale2d | ( | double | xFactor, |
| double | yFactor | ||
| ) |
Constructor for the OdGeScale2d class.
| xFactor | [in] The X scale factor. |
| yFactor | [in] The Y scale factor. |
| OdGeScale2d & OdGeScale2d::extractScale | ( | const OdGeMatrix2d & | xfm | ) |
Returns the scale vector corresponding to the lengths of the column vectors of the transformation matrix.
| xfm | [out] Receives the 2D transformation matrix. |
| void OdGeScale2d::getMatrix | ( | OdGeMatrix2d & | xfm | ) | const |
Returns the transformation matrix equivalent to this scale vector.
| xfm | [out] Receives the 2D transformation matrix. |
| OdGeScale2d OdGeScale2d::inverse | ( | ) | const |
Returns the inverse of this scale vector.
| OdGeScale2d & OdGeScale2d::invert | ( | ) |
Sets this scale vector to its inverse, and returns a reference to this scale vector.
| bool OdGeScale2d::isEqualTo | ( | const OdGeScale2d & | scaleVec, |
| const OdGeTol & | tol = OdGeContext::gTol |
||
| ) | const |
Returns true if and only if scaleVec is identical to this one, within the specified tolerance.
| scaleVec | [in] Any 2D scale vector to be compared with this scale vector. |
| tol | [in] Geometric tolerance. |
| bool OdGeScale2d::isProportional | ( | const OdGeTol & | tol = OdGeContext::gTol | ) | const |
Returns true if and only if the scaling matrix corresponding to this scale vector isUniScaledOrtho().
| tol | [in] Geometric tolerance. |
| OdGeScale2d::operator OdGeMatrix2d | ( | ) | const |
Returns the equivalent 2D transformation matrix.
| OdGeScale2d::operator OdGeScale3d | ( | ) | const |
Returns the equivalent 3D scale vector [sx sy 1].
| bool OdGeScale2d::operator!= | ( | const OdGeScale2d & | scaleVec | ) | const |
Inequality operator for the OdGeScale2d object. Returns true if this scale vector is not equal to the input scale vector.
| scaleVec | [in] A scale vector to be compared with this scale vector. |
| OdGeScale2d OdGeScale2d::operator* | ( | const OdGeScale2d & | scaleVec | ) | const |
Multiplication operator for the OdGeScale2d object.
| scaleVec | [in] Any 2D scale vector scale factors of which are multiplied. |
<pre>
scl * [xs ys] = [scl*xs scl*ys]
[xs1 ys1] * [xs2 ys2] = [xs1*xs2 ys1*ys2]
</pre>
| OdGeScale2d OdGeScale2d::operator* | ( | double | factor | ) | const |
Multiplication operator for the OdGeScale2d object. Returns the resulting scale object.
| factor | [in] Uniform scale factor. |
<pre>
scl * [xs1 ys1] = [scl*xs1 scl*ys1]
[xs1 ys1 ] * [xs2 ys2] = [xs1*xs2 ys1*ys2]
</pre>
| OdGeScale2d & OdGeScale2d::operator*= | ( | const OdGeScale2d & | scaleVec | ) |
Multiplication operator for the OdGeScale2d object.
| scaleVec | [in] Any 2D scale vector scale factors of which are multiplied. |
| OdGeScale2d & OdGeScale2d::operator*= | ( | double | factor | ) |
Multiplication operator for the OdGeScale2d object. Returns a reference to the resulting scale object.
| factor | [in] Uniform scale factor. |
<pre>
scl * [xs1 ys1] = [scl*xs1 scl*ys1]
[xs1 ys1 ] * [xs2 ys2] = [xs1*xs2 ys1*ys2]
</pre>
| bool OdGeScale2d::operator== | ( | const OdGeScale2d & | scaleVec | ) | const |
Equality operator for the OdGeScale2d object. Returns true if this scale vector is equal to the input scale vector.
| scaleVec | [in] A scale vector to be compared with this scale vector. |
|
inline |
References the ith component of the scale vector.
| i | [in] Index of component. |
Definition at line 268 of file GeScale2d.h.
|
inline |
Returns the ith component of the scale vector.
| i | [in] Index of component. |
Definition at line 283 of file GeScale2d.h.
|
inline |
Sets this scale vector to the product (this scale vector) * (rightSide), and returns a reference to this scale vector.
| rightSide | [in] Any 2D scale vector that is multiplied with this scale vector. |
Definition at line 139 of file GeScale2d.h.
|
inline |
Sets this scale vector to the product leftSide * (this scale vector), and returns a reference to this scale vector.
| leftSide | [in] Any 2D scale vector that is multiplied with this scale vector. |
Definition at line 125 of file GeScale2d.h.
| OdGeScale2d & OdGeScale2d::removeScale | ( | OdGeMatrix2d & | xfm | ) |
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 .
| xfm | [out] Receives the 2D transformation matrix. |
| OdGeScale2d & OdGeScale2d::set | ( | double | xFactor, |
| double | yFactor | ||
| ) |
Sets this scale vector to the specified X and Y factors, and returns a reference to this vector.
| xFactor | [in] The X scale factor. |
| yFactor | [in] The Y scale factor. |
| OdGeScale2d & OdGeScale2d::setToProduct | ( | const OdGeScale2d & | scaleVec, |
| double | factor | ||
| ) |
Sets this scale vector to the product factor * scaleVec, and returns a reference to this scale vector.
| scaleVec | [in] Any 2D scale vector that is multiplied by . |
| factor | [in] Uniform scale factor. |
<pre>
scl * [xs1 ys1] = [scl*xs1 scl*ys1]
[xs1 ys1 ] * [xs2 ys2] = [xs1*xs2 ys1*ys2]
</pre>
| OdGeScale2d & OdGeScale2d::setToProduct | ( | const OdGeScale2d & | scaleVec1, |
| const OdGeScale2d & | scaleVec2 | ||
| ) |
Sets this scale vector to the product scaleVec1 * scaleVec2 and returns a reference to this scale vector.
| scaleVec1 | [in] Any 2D scale vector. |
| scaleVec2 | [in] Any 2D scale vector. |
<pre>
scl * [xs1 ys1] = [scl*xs1 scl*ys1]
[xs1 ys1 ] * [xs2 ys2] = [xs1*xs2 ys1*ys2]
</pre>
|
friend |
|
static |
Definition at line 82 of file GeScale2d.h.
| double OdGeScale2d::sx |
Definition at line 344 of file GeScale2d.h.
| double OdGeScale2d::sy |
Definition at line 345 of file GeScale2d.h.