Interface Transformable

All Known Subinterfaces:
Component, Face3D
All Known Implementing Classes:
AbstractComponent, AlertDCWire, Arc3D, Box3D, Camera3D, ConcaveComponent, Cylindrical3D, DriftChamberWire, Helix3D, Line3D, Mesh3D, MeshComponent, Path3D, Plane3D, Point3D, PrismaticComponent, RectangularComponent, ScintillatorMesh, ScintillatorPaddle, Sector3D, Shape3D, SiStrip, Sphere3D, TrackerStrip, Trap3D, Triangle3D, Vector3D

public interface Transformable
An object that can be translated and rotated in 3D.

Objects implementing this interface can be manipulated using Transformation3D which allows sequences of rotations and translations to be grouped together and performed simultaneously.

Author:
jnhankins
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    rotateX(double angle)
    Rotates this object clockwise around the x axis.
    void
    rotateY(double angle)
    Rotates this object clockwise around the y axis.
    void
    rotateZ(double angle)
    Rotates this object clockwise around the z axis.
    void
    translateXYZ(double dx, double dy, double dz)
    Translates this object linearly by the amounts specified.
  • Method Details Link icon

    • translateXYZ Link icon

      void translateXYZ(double dx, double dy, double dz)
      Translates this object linearly by the amounts specified.
      Parameters:
      dx - amount to translate along the x axis
      dy - amount to translate along the y axis
      dz - amount to translate along the z axis
    • rotateX Link icon

      void rotateX(double angle)
      Rotates this object clockwise around the x axis.
      Parameters:
      angle - rotation angle in radians
    • rotateY Link icon

      void rotateY(double angle)
      Rotates this object clockwise around the y axis.
      Parameters:
      angle - rotation angle in radians
    • rotateZ Link icon

      void rotateZ(double angle)
      Rotates this object clockwise around the z axis.
      Parameters:
      angle - rotation angle in radians