Module org.dyn4j
Package org.dyn4j.geometry

Interface Rotatable

• All Known Subinterfaces:
`Collidable<T>`, `Convex`, `Shape`, `Transformable`, `Wound`
All Known Implementing Classes:
`AbstractCollidable`, `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.2.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.
• Method Detail

• rotate

`void rotate​(double theta)`
Rotates the object about the origin.
Parameters:
`theta` - the angle of rotation in radians
• 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​(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