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

    Modifier and Type
    Method
    Description
    void
    translate(double x, double y, double z)
    Shifts this object's X, Y, and Z position by the given values.
    default void
    Moves this object along a given Vector3d.
  • Method Details

    • translate

      default void translate(Vector3d vec)
      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 axis
      y - how far the object should be translated along the Y axis
      z - how far the object should be translated along the Z axis