Module org.dyn4j

## Interface Rotatable

• All Known Subinterfaces:
`Collidable<T>`, `CollisionBody<T>`, `Convex`, `PhysicsBody`, `Shape`, `Transformable`, `Wound`
All Known Implementing Classes:
`AbstractCollidable`, `AbstractCollisionBody`, `AbstractPhysicsBody`, `AbstractShape`, `Body`, `Capsule`, `Circle`, `Ellipse`, `HalfEllipse`, `Link`, `Polygon`, `Rectangle`, `Segment`, `Slice`, `Transform`, `Triangle`

`public interface Rotatable`
Interface representing an object that can be rotated.
Since:
3.2.0
Version:
3.4.0
Author:
William Bittle
• ### Method Summary

All Methods
Modifier and Type Method Description
`void` `rotate​(double theta)`
Rotates the object about the origin.
`void` ```rotate​(double theta, double x, double y)```
Rotates the object about the given coordinates.
`void` ```rotate​(double theta, Vector2 point)```
Rotates the object about the given point.
`void` `rotate​(Rotation rotation)`
Rotates the object about the origin.
`void` ```rotate​(Rotation rotation, double x, double y)```
Rotates the object about the given point.
`void` ```rotate​(Rotation rotation, Vector2 point)```
Rotates the object about the given point.
• ### Method Detail

• #### rotate

`void rotate​(double theta)`
Rotates the object about the origin.
Parameters:
`theta` - the angle of rotation in radians
• #### rotate

`void rotate​(Rotation rotation)`
Rotates the object about the origin.
Parameters:
`rotation` - the `Rotation` representing the rotation amount
Since:
3.4.0
• #### rotate

```void rotate​(double theta,
Vector2 point)```
Rotates the object about the given point.
Parameters:
`theta` - the angle of rotation in radians
`point` - the point to rotate about
• #### rotate

```void rotate​(Rotation rotation,
Vector2 point)```
Rotates the object about the given point.
Parameters:
`rotation` - the `Rotation` representing the rotation amount
`point` - the point to rotate about
Since:
3.4.0
• #### rotate

```void rotate​(double theta,
double x,
double y)```
Rotates the object about the given coordinates.
Parameters:
`theta` - the angle of rotation in radians
`x` - the x coordinate to rotate about
`y` - the y coordinate to rotate about
• #### rotate

```void rotate​(Rotation rotation,
double x,
double y)```
Rotates the object about the given point.
Parameters:
`rotation` - the `Rotation` representing the rotation amount
`x` - the x coordinate to rotate about
`y` - the y coordinate to rotate about
Since:
3.4.0