The twist deformation in the plane.
More...
#include <twist.h>
|
| | Twist2 (const Vector2 &, const double &, const double &, const double &) |
| | Creates a twisting operator.
|
|
| ~Twist2 () |
| | Empty.
|
| Vector2 | Transform (const Vector2 &) const |
| | Transforms a point.
|
| Vector2 | InverseTransform (const Vector2 &) const |
| | Inverse transformation of a point.
|
|
double | Angle () const |
| | Return the angle.
|
|
Box2 | GetBox () const |
| | Compute the bouding box of the region where twist occurs.
|
|
|
std::ostream & | operator<< (std::ostream &s, const Twist2 &twist) |
| | Overloaded.
|
The twist deformation in the plane.
Example of how to code a twist:
static constexpr double Pi
.
Definition mathematics.h:173
Twist2(const Vector2 &, const double &, const double &, const double &)
Creates a twisting operator.
Definition twist2.cpp:26
Vectors in three dimensions.
Definition evector.h:13
◆ Twist2()
| Twist2::Twist2 |
( |
const Vector2 & | c, |
|
|
const double & | ra, |
|
|
const double & | rb, |
|
|
const double & | a ) |
|
explicit |
Creates a twisting operator.
The deformation is enclosed in a disc delimited by the maximum radius, the region inside the smaller disc is simply rotated, whereas the region in the annulus is twisted.
- Parameters
-
| c | Center. |
| ra,rb | Radii. |
| a | Twisting angle. |
◆ InverseTransform()
Inverse transformation of a point.
- Parameters
-
◆ Transform()
Transforms a point.
- Parameters
-