-
- 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 Instance Methods Abstract 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
- theRotation
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 radianspoint
- the point to rotate about
-
rotate
void rotate(Rotation rotation, Vector2 point)
Rotates the object about the given point.- Parameters:
rotation
- theRotation
representing the rotation amountpoint
- 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 radiansx
- the x coordinate to rotate abouty
- the y coordinate to rotate about
-
-