Package org.jlab.geom.prim
Class Camera3D
java.lang.Object
org.jlab.geom.prim.Camera3D
- All Implemented Interfaces:
Transformable
- Author:
- gavalian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCanvasX(Point3D point) intgetCanvasY(Point3D point) voidrotateX(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.voidsetAspectRatio(double ratio) voidsetCanvasSize(int w, int h) voidsetDistance(double distance) voidtranslateXYZ(double dx, double dy, double dz) Translates this object linearly by the amounts specified.
-
Constructor Details
-
Camera3D
public Camera3D()
-
-
Method Details
-
translateXYZ
public void translateXYZ(double dx, double dy, double dz) Description copied from interface:TransformableTranslates this object linearly by the amounts specified.- Specified by:
translateXYZin interfaceTransformable- Parameters:
dx- amount to translate along the x axisdy- amount to translate along the y axisdz- amount to translate along the z axis
-
rotateX
public void rotateX(double angle) Description copied from interface:TransformableRotates this object clockwise around the x axis.- Specified by:
rotateXin interfaceTransformable- Parameters:
angle- rotation angle in radians
-
rotateY
public void rotateY(double angle) Description copied from interface:TransformableRotates this object clockwise around the y axis.- Specified by:
rotateYin interfaceTransformable- Parameters:
angle- rotation angle in radians
-
setCanvasSize
public void setCanvasSize(int w, int h) -
getCanvasX
-
getCanvasY
-
rotateZ
public void rotateZ(double angle) Description copied from interface:TransformableRotates this object clockwise around the z axis.- Specified by:
rotateZin interfaceTransformable- Parameters:
angle- rotation angle in radians
-
setAspectRatio
public void setAspectRatio(double ratio) -
setDistance
public void setDistance(double distance) -
getPoint
-
getLine
-