CFx SDK Documentation
2022 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 | ( | ) |
factor | [in] Uniform scale factor. |
xFactor | [in] The X scale factor. |
yFactor | [in] The Y scale factor. |
source | [in] Object to be cloned. |
OdGeScale2d::OdGeScale2d | ( | double | factor | ) |
OdGeScale2d::OdGeScale2d | ( | double | xFactor, |
double | yFactor | ||
) |
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. |
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 tranformation matrix. or a 3D scale vector [sx sy 1].
OdGeScale2d::operator OdGeScale3d | ( | ) | const |
bool OdGeScale2d::operator!= | ( | const OdGeScale2d & | scaleVec | ) | const |
OdGeScale2d OdGeScale2d::operator* | ( | const OdGeScale2d & | scaleVec | ) | const |
scaleVec | [in] Any 2D scale vector. |
factor | [in] Uniform scale factor. |
OdGeScale2d OdGeScale2d::operator* | ( | double | factor | ) | const |
factor | [in] Uniform scale factor. |
scl * [xs1 ys1] = [scl*xs1 scl*ys1] [xs1 ys1 ] * [xs2 ys2] = [xs1*xs2 ys1*ys2]
OdGeScale2d& OdGeScale2d::operator*= | ( | const OdGeScale2d & | scaleVec | ) |
scaleVec | [in] Any 2D scale vector. |
factor | [in] Uniform scale factor. |
scl * [xs ys] = [scl*xs scl*ys] [xs1 ys1] * [xs2 ys2] = [xs1*xs2 ys1*ys2]
OdGeScale2d& OdGeScale2d::operator*= | ( | double | factor | ) |
factor | [in] Uniform scale factor. |
bool OdGeScale2d::operator== | ( | const OdGeScale2d & | scaleVec | ) | const |
|
inline |
Returns or references the ith component of the scale vector.
i | [in] Index of component. |
Definition at line 205 of file GeScale2d.h.
|
inline |
Definition at line 210 of file GeScale2d.h.
OdGeScale2d& OdGeScale2d::postMultBy | ( | const OdGeScale2d & | rightSide | ) |
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. |
OdGeScale2d& OdGeScale2d::preMultBy | ( | const OdGeScale2d & | leftSide | ) |
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. |
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.
factor | [in] Uniform scale factor. |
scaleVec | [in] Any 2D scale vector. |
scl * [xs1 ys1] = [scl*xs1 scl*ys1] [xs1 ys1 ] * [xs2 ys2] = [xs1*xs2 ys1*ys2]
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. |
scl * [xs1 ys1] = [scl*xs1 scl*ys1] [xs1 ys1 ] * [xs2 ys2] = [xs1*xs2 ys1*ys2]
|
friend |
|
static |
Definition at line 61 of file GeScale2d.h.
double OdGeScale2d::sx |
Definition at line 269 of file GeScale2d.h.
double OdGeScale2d::sy |
Definition at line 270 of file GeScale2d.h.