Class SpecifyVector
Specifies each axis-component of a vector in a particular direction.
- Author:
- Owen
-
Constructor Summary
ConstructorsConstructorDescriptionSpecifyVector
(double x, double y, double z) Creates a newSpecifyVector
instance.SpecifyVector
(DirectionVector vector) Create from aDirectionVector
. -
Method Summary
Modifier and TypeMethodDescriptionCreates a vector in a particular direction.double
getX()
Component of the vector along the x-axis.double
getY()
Component of the vector along the y-axis.double
getZ()
Component of the vector along the z-axis.void
setX
(double x) Component of the vector along the x-axis.void
setY
(double y) Component of the vector along the y-axis.void
setZ
(double z) Component of the vector along the z-axis.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
SpecifyVector
Create from aDirectionVector
.- Parameters:
vector
- the vector from which components are copied.
-
SpecifyVector
public SpecifyVector() -
SpecifyVector
public SpecifyVector(double x, double y, double z) Creates a newSpecifyVector
instance.- Parameters:
x
- Component of the vector along the x-axis.y
- Component of the vector along the y-axis.z
- Component of the vector along the z-axis.
-
-
Method Details
-
createVector
Description copied from class:DirectionVectorBean
Creates a vector in a particular direction.- Specified by:
createVector
in classDirectionVectorBean
- Returns:
- the created vector.
-
getX
public double getX()Component of the vector along the x-axis. -
setX
public void setX(double x) Component of the vector along the x-axis. -
getY
public double getY()Component of the vector along the y-axis. -
setY
public void setY(double y) Component of the vector along the y-axis. -
getZ
public double getZ()Component of the vector along the z-axis. -
setZ
public void setZ(double z) Component of the vector along the z-axis.
-