-
- All Known Subinterfaces:
Bounds
,Collidable<T>
,CollisionBody<T>
,Convex
,PhysicsBody
,Shape
,Transformable
,Wound
- All Known Implementing Classes:
AABB
,AbstractBounds
,AbstractCollidable
,AbstractCollisionBody
,AbstractPhysicsBody
,AbstractShape
,AxisAlignedBounds
,Body
,Capsule
,Circle
,Ellipse
,HalfEllipse
,Link
,Polygon
,Rectangle
,Segment
,Slice
,Transform
,Triangle
public interface Translatable
Represents an object that can be translated or moved in the x-y plane.- Since:
- 3.2.0
- Version:
- 3.2.0
- Author:
- William Bittle
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
translate(double x, double y)
Translates the object the given amounts in the respective directions.void
translate(Vector2 vector)
Translates the object along the given vector.
-
-
-
Method Detail
-
translate
void translate(double x, double y)
Translates the object the given amounts in the respective directions.- Parameters:
x
- the translation in the x directiony
- the translation in the y direction
-
translate
void translate(Vector2 vector)
Translates the object along the given vector.- Parameters:
vector
- the translation along a vector
-
-