Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- copy(Arc3D)
- set(Point3D, Point3D, Vector3D, double)
- setOrigin(Point3D)
- setCenter(Point3D)
- setNormal(Vector3D)
- setTheta(double)
- setRadius(double)
- origin()
- end()
- originVector()
- endVector()
- center()
- normal()
- radius()
- theta()
- point(double)
- bisect()
- translateXYZ(double, double, double)
- rotateX(double)
- rotateY(double)
- rotateZ(double)
- show()
- toString()
Class Arc3D
java.lang.Object
org.jlab.geom.prim.Arc3D
- All Implemented Interfaces:
Transformable
,Showable
An arc represented by a point at the center of the circle subtended by the
arc, a point at the origin/beginning of the arc, the normal of the circle of
the arc, and an angle theta which is the angle subtended by the arc clockwise
around the normal.
- Author:
- jnhankins
-
Constructor Summary
ConstructorsConstructorDescriptionArc3D()
Constructs a newArc3D
from point centered around the origin with a unit radius in the xy plane such that the origin point is at (1, 0, 0) and the end point is at (0, 1, 0).Constructs a newArc3D
that is identical to the given arc.Constructs a newArc3D
from the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionbisect()
center()
Returns the center point of the circle of the arc.void
Sets the core parameters of thisArc3D
to be equal to those of the given arc such that this arc will coincide with the given arc.end()
Constructs a newPoint3D
at the end of this arc.Constructs a newVector3D
from the center point of the circle of the arc to the end point on the arc.normal()
Returns the vector normal to the circle of the arc.origin()
Returns the origin point of this arc.Constructs a newVector3D
from the center point of the cirlce of the arc to the origin point on the arc.point
(double t) Constructs a newPoint3D
object by using the given value as the parameter for the parametric equation describing this arc.double
radius()
Returns the radius of the arc.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
Sets the core parameters of this arc to equal the given parameters.void
Sets the center point of the circle of the arc.void
Sets the normal of the circle of the arc.void
Sets the origin point at the beginning of the arc.void
setRadius
(double radius) Sets the radius of the arc.void
setTheta
(double theta) Sets the angle subtended by the arc.void
show()
InvokesSystem.out.println(this)
.double
theta()
Returns the angle subtended by the arc.toString()
void
translateXYZ
(double dx, double dy, double dz) Translates this object linearly by the amounts specified.
-
Constructor Details
-
Arc3D
public Arc3D()Constructs a newArc3D
from point centered around the origin with a unit radius in the xy plane such that the origin point is at (1, 0, 0) and the end point is at (0, 1, 0). -
Arc3D
Constructs a newArc3D
from the given parameters.- Parameters:
origin
- the origin point on the arccenter
- the center point of the circle the arcnormal
- the normal vector of the circle of the arctheta
- the angle subtended by the arc
-
Arc3D
Constructs a newArc3D
that is identical to the given arc.- Parameters:
arc
- the arc to copy
-
-
Method Details
-
copy
Sets the core parameters of thisArc3D
to be equal to those of the given arc such that this arc will coincide with the given arc.- Parameters:
arc
- the arc to copy
-
set
Sets the core parameters of this arc to equal the given parameters.- Parameters:
origin
- the origin point on the arccenter
- the center point of the circle the arcnormal
- the normal vector of the circle of the arctheta
- the angle subtended by the arc
-
setOrigin
Sets the origin point at the beginning of the arc.- Parameters:
origin
- the origin point
-
setCenter
Sets the center point of the circle of the arc.- Parameters:
center
- the center point of the circle
-
setNormal
Sets the normal of the circle of the arc.- Parameters:
normal
- the normal of the circle of the arc.
-
setTheta
public void setTheta(double theta) Sets the angle subtended by the arc. This value will be modulated to be within the range (0, 2*PI].- Parameters:
theta
- the angle subtended by the arc
-
setRadius
public void setRadius(double radius) Sets the radius of the arc.- Parameters:
radius
- the radius
-
origin
-
end
-
originVector
Constructs a newVector3D
from the center point of the cirlce of the arc to the origin point on the arc.- Returns:
- a vector from the center to the arc's origin point
-
endVector
Constructs a newVector3D
from the center point of the circle of the arc to the end point on the arc.- Returns:
- a vector from the center to the arc's end point
-
center
Returns the center point of the circle of the arc.- Returns:
- the center point of the circle
-
normal
Returns the vector normal to the circle of the arc.- Returns:
- the normal vector
-
radius
public double radius()Returns the radius of the arc.- Returns:
- the radius
-
theta
public double theta()Returns the angle subtended by the arc.- Returns:
- the angle subtended
-
point
Constructs a newPoint3D
object by using the given value as the parameter for the parametric equation describing this arc. If the value is zero, then the returned point coincides with the origin point. If the value is equal to theta, then the returned point coincides with the end point.- Parameters:
t
- the parametric parameter- Returns:
- the point
-
bisect
-
translateXYZ
public void translateXYZ(double dx, double dy, double dz) Description copied from interface:Transformable
Translates this object linearly by the amounts specified.- Specified by:
translateXYZ
in 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:Transformable
Rotates this object clockwise around the x axis.- Specified by:
rotateX
in interfaceTransformable
- Parameters:
angle
- rotation angle in radians
-
rotateY
public void rotateY(double angle) Description copied from interface:Transformable
Rotates this object clockwise around the y axis.- Specified by:
rotateY
in interfaceTransformable
- Parameters:
angle
- rotation angle in radians
-
rotateZ
public void rotateZ(double angle) Description copied from interface:Transformable
Rotates this object clockwise around the z axis.- Specified by:
rotateZ
in interfaceTransformable
- Parameters:
angle
- rotation angle in radians
-
show
-
toString
-