Package com.ijurnove.cpu3d
Interface Translatable
- All Known Implementing Classes:
Camera,Point3d,PointLight,Shape3d,Triangle
public interface Translatable
This interface allows objects in 3D space to be translated.
-
Method Summary
-
Method Details
-
translate
Moves this object along a given Vector3d.- Parameters:
vec- the Vector3d to shift this object along
-
translate
void translate(double x, double y, double z) Shifts this object's X, Y, and Z position by the given values.- Parameters:
x- how far the object should be translated along the X axisy- how far the object should be translated along the Y axisz- how far the object should be translated along the Z axis
-