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. More... | |
~Twist2 () | |
Empty. | |
Vector2 | Transform (const Vector2 &) const |
Transforms a point. More... | |
Vector2 | InverseTransform (const Vector2 &) const |
Inverse transformation of a point. More... | |
double | Angle () const |
Return the angle. | |
Box2 | GetBox () const |
Compute the bouding box of the region where twist occurs. | |
Protected Attributes | |
Vector2 | c |
Center. | |
double | rb |
Radii. | |
double | angle |
Twisting angle. | |
Friends | |
std::ostream & | operator<< (std::ostream &, const Twist2 &) |
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. |