Package org.jlab.geom.prim
Interface Transformable
- 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
Modifier and TypeMethodDescriptionvoidrotateX(double angle) Rotates this object clockwise around the x axis.voidrotateY(double angle) Rotates this object clockwise around the y axis.voidrotateZ(double angle) Rotates this object clockwise around the z axis.voidtranslateXYZ(double dx, double dy, double dz) Translates this object linearly by the amounts specified.
-
Method Details
-
translateXYZ
void translateXYZ(double dx, double dy, double dz) Translates this object linearly by the amounts specified.- Parameters:
dx- amount to translate along the x axisdy- amount to translate along the y axisdz- amount to translate along the z axis
-
rotateX
void rotateX(double angle) Rotates this object clockwise around the x axis.- Parameters:
angle- rotation angle in radians
-
rotateY
void rotateY(double angle) Rotates this object clockwise around the y axis.- Parameters:
angle- rotation angle in radians
-
rotateZ
void rotateZ(double angle) Rotates this object clockwise around the z axis.- Parameters:
angle- rotation angle in radians
-