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 newSpecifyVectorinstance.SpecifyVector(DirectionVector vector) Create from aDirectionVector. -
Method Summary
Modifier and TypeMethodDescriptionCreates a vector in a particular direction.doublegetX()Component of the vector along the x-axis.doublegetY()Component of the vector along the y-axis.doublegetZ()Component of the vector along the z-axis.voidsetX(double x) Component of the vector along the x-axis.voidsetY(double y) Component of the vector along the y-axis.voidsetZ(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 newSpecifyVectorinstance.- 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:DirectionVectorBeanCreates a vector in a particular direction.- Specified by:
createVectorin 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.
-