3-by-4 affine transform value type. Mirrors occtl_transform_t.
More...
#include <geom.hpp>
|
|
| Transform (const occtl_transform_t &theC) noexcept |
| | Wraps an existing C value type (zero-cost).
|
| |
|
const occtl_transform_t & | c_type () const noexcept |
| | Borrows-it view of the underlying C value type.
|
| |
|
Point3 | apply (const Point3 &theP) const noexcept |
| | Applies the full affine transform to a point (includes translation).
|
| |
|
Vector3 | apply (const Vector3 &theV) const noexcept |
| | Applies only the linear (3×3) part to a vector. No translation.
|
| |
| Direction3 | apply (const Direction3 &theD) const |
| | Applies the linear part to a unit direction and re-normalises the result.
|
| |
|
Transform | compose (const Transform &theSecond) const noexcept |
| | Composition: returns "apply *this first, then @c theSecond". Equivalent to the matrix product theSecond * *this.
|
| |
| Transform | inverted () const |
| | Returns the inverse transform.
|
| |
3-by-4 affine transform value type. Mirrors occtl_transform_t.
Composition convention: see compose.
◆ apply()
Applies the linear part to a unit direction and re-normalises the result.
- Exceptions
-
| Error | with code OCCTL_GEOMETRY_INVALID when the transform collapses the direction to zero. |
◆ from_axis2()
Returns the world→frame transform for the given coordinate frame.
- Exceptions
-
| Error | with code OCCTL_GEOMETRY_INVALID when the frame is degenerate. |
◆ from_axis3()
Returns the transform whose linear columns are the explicit axes.
- Exceptions
-
| Error | with code OCCTL_GEOMETRY_INVALID when the three axes are linearly dependent. |
◆ inverted()
| Transform occtl::Transform::inverted |
( |
| ) |
const |
|
inline |
Returns the inverse transform.
- Exceptions
-
| Error | with code OCCTL_GEOMETRY_INVALID when *this is singular. |
◆ rotation()
Returns a rotation transform around theAxis by theAngle radians.
- Exceptions
-
| Error | with code OCCTL_GEOMETRY_INVALID when the axis direction is zero. |
◆ scale()
| static Transform occtl::Transform::scale |
( |
const Point3 & |
theCenter, |
|
|
const double |
theFactor |
|
) |
| |
|
inlinestatic |
Returns a uniform-scale transform centred on theCenter.
- Exceptions
-
| Error | with code OCCTL_GEOMETRY_INVALID when theFactor is zero. |
The documentation for this struct was generated from the following file: