Class AxisAlignedUnitVector
Object
org.anchoranalysis.bean.AnchorBean<DirectionVectorBean>
org.anchoranalysis.image.bean.spatial.direction.DirectionVectorBean
org.anchoranalysis.image.bean.spatial.direction.AxisAlignedUnitVector
public class AxisAlignedUnitVector extends DirectionVectorBean
Creates a
DirectionVector that is a unit-vector along a particular image-axis.- Author:
- Owen
-
Constructor Summary
Constructors Constructor Description AxisAlignedUnitVector() -
Method Summary
Modifier and Type Method Description org.anchoranalysis.spatial.orientation.DirectionVectorcreateVector()Creates a vector in a particular direction.StringgetAxis()Which axis the unit-vector will align with.voidsetAxis(String axis)Which axis the unit-vector will align with.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
AxisAlignedUnitVector
public AxisAlignedUnitVector()
-
-
Method Details
-
createVector
Description copied from class:DirectionVectorBeanCreates a vector in a particular direction.- Specified by:
createVectorin classDirectionVectorBean- Returns:
- the created vector.
- Throws:
CreateException- if the vector cannot be successfully created.
-
getAxis
Which axis the unit-vector will align with.xoryorz -
setAxis
Which axis the unit-vector will align with.xoryorz
-