Core 1.0
|
The twist deformation in the plane. More...
#include <twist.h>
Public Member Functions | |
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. | |
Protected Attributes | |
Vector2 | c = Vector::Null |
Center. | |
double | rb = 1.0 |
Radii. | |
double | angle = 0.0 |
Twisting angle. | |
Friends | |
std::ostream & | operator<< (std::ostream &s, const Twist2 &twist) |
Overloaded. | |
The twist deformation in the plane.
Example of how to code a twist:
|
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.
c | Center. |
ra,rb | Radii. |
a | Twisting angle. |
Inverse transformation of a point.
p | Argument point. |