public class FieldLine extends VisibleObject implements IFieldLine, IReferenceLine
Constructor and Description |
---|
FieldLine(java.lang.String name,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D knownPosition1,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D knownPosition2) |
Modifier and Type | Method and Description |
---|---|
void |
adjustKnownPosition1(org.apache.commons.math3.geometry.euclidean.threed.Vector3D adjustedKnwonPosition1)
Sets the adjusted known position to the first reference point
|
void |
adjustKnownPosition2(org.apache.commons.math3.geometry.euclidean.threed.Vector3D adjustedKnwonPosition2)
Sets the adjusted known position to the second reference point
|
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getAdjustedKnownPosition1()
This method returns the same as the getKnownPosition1() in case if the
line is fully visible.
|
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getAdjustedKnownPosition2()
This method returns the same as the getKnownPosition2() in case if the
line is fully visible.
|
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getKnownPosition1() |
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getKnownPosition2() |
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getLocalPosition1() |
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getLocalPosition2() |
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getPosition1() |
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getPosition2() |
void |
updateLocalPositions(org.apache.commons.math3.geometry.euclidean.threed.Vector3D pos1,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D pos2)
Update the local position of the reference points of the line (relative to
the root body)
Note: By updating a reference line, the line get's visible |
void |
updatePositions(org.apache.commons.math3.geometry.euclidean.threed.Vector3D pos1,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D pos2,
float time) |
equals, getAge, getCollisionDistance, getDirectionTo, getDirectionTo, getDistanceToXY, getDistanceToXY, getDistanceToXYZ, getDistanceToXYZ, getInformationSource, getLastSeenTime, getLocalPosition, getName, getPosition, getPreviousPosition, hashCode, isLaying, isVisible, setPosition, setVisible, updateFromAudio, updateFromVision, updateNoVision
getClass, notify, notifyAll, toString, wait, wait, wait
getAge, getCollisionDistance, getDirectionTo, getDirectionTo, getDistanceToXY, getDistanceToXY, getDistanceToXYZ, getDistanceToXYZ, getInformationSource, getLastSeenTime, getLocalPosition, getName, getPosition, getPreviousPosition, isLaying, isVisible
isVisible, setVisible
public FieldLine(java.lang.String name, org.apache.commons.math3.geometry.euclidean.threed.Vector3D knownPosition1, org.apache.commons.math3.geometry.euclidean.threed.Vector3D knownPosition2)
public void updatePositions(org.apache.commons.math3.geometry.euclidean.threed.Vector3D pos1, org.apache.commons.math3.geometry.euclidean.threed.Vector3D pos2, float time)
pos1
- first global position of the linepos2
- second global position of the linepublic void updateLocalPositions(org.apache.commons.math3.geometry.euclidean.threed.Vector3D pos1, org.apache.commons.math3.geometry.euclidean.threed.Vector3D pos2)
IReferenceLine
updateLocalPositions
in interface IReferenceLine
pos1
- first seen local position of the linepos2
- second seen local position of the linepublic void adjustKnownPosition1(org.apache.commons.math3.geometry.euclidean.threed.Vector3D adjustedKnwonPosition1)
IReferenceLine
adjustKnownPosition1
in interface IReferenceLine
public void adjustKnownPosition2(org.apache.commons.math3.geometry.euclidean.threed.Vector3D adjustedKnwonPosition2)
IReferenceLine
adjustKnownPosition2
in interface IReferenceLine
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D getPosition1()
getPosition1
in interface IFieldLine
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D getPosition2()
getPosition2
in interface IFieldLine
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D getLocalPosition1()
getLocalPosition1
in interface IFieldLine
getLocalPosition1
in interface IReferenceLine
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D getLocalPosition2()
getLocalPosition2
in interface IFieldLine
getLocalPosition2
in interface IReferenceLine
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D getKnownPosition1()
getKnownPosition1
in interface IReferenceLine
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D getKnownPosition2()
getKnownPosition2
in interface IReferenceLine
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D getAdjustedKnownPosition1()
IReferenceLine
getAdjustedKnownPosition1
in interface IReferenceLine
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D getAdjustedKnownPosition2()
IReferenceLine
getAdjustedKnownPosition2
in interface IReferenceLine