T
- type of the rotation resultspublic interface IRotatable<T extends IGeometry>
The IRotatable
interface collects the out-of-place rotation short-cut
methods.
Rotation cannot be applied directly to all IGeometry
s. For example,
Rectangle
, Ellipse
, Region
and
RoundedRectangle
cannot be slanted. Therefore, you have to specify
the result type for the rotation methods via a type parameter.
There are two directions of rotation: clock-wise (CW) and counter-clock-wise
(CCW). The individual method names reflect the direction of rotation that is
used. These are the rotation methods: getRotatedCCW(Angle)
,
getRotatedCCW(Angle, Point)
,
getRotatedCCW(Angle, double, double)
, getRotatedCW(Angle)
,
getRotatedCW(Angle, Point)
,
getRotatedCW(Angle, double, double)
.
If you do not specify a Point
to rotate around, the implementation
can appropriately choose one. In most cases, this will be the center
Point
of the rotated object.
Modifier and Type | Method and Description |
---|---|
T |
getRotatedCCW(Angle angle)
|
T |
getRotatedCCW(Angle angle,
double cx,
double cy)
|
T |
getRotatedCCW(Angle angle,
Point center)
|
T |
getRotatedCW(Angle angle)
|
T |
getRotatedCW(Angle angle,
double cx,
double cy)
|
T |
getRotatedCW(Angle angle,
Point center)
|
Copyright (c) 2014 itemis AG, and others. All rights reserved.