Class RMVector3D
- java.lang.Object
- 
- com.inductiveautomation.rm.graphics.RMVector3D
 
- 
 public class RMVector3D extends java.lang.ObjectThis class represents a 3D vector.
- 
- 
Constructor SummaryConstructors Constructor Description RMVector3D(double x, double y, double z)Creates a new vector from the given coords.RMVector3D(RMVector3D aVector)Creates a new vector from the given vector.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(RMVector3D aVector)Add the given vector to this.doublegetAngleBetween(RMVector3D aVector)Returns the angle between the receiver and the given vector.RMVector3DgetCrossProduct(RMVector3D v2)Returns the vector perpendicular to the receiver and the given vector.doublegetDotProduct(RMVector3D v2)Returns the dot product of the receiver and the given vector.doublegetMagnitude()Returns the magnitude of the vector.booleanisAligned(RMVector3D aVector, boolean includePerpendiculars)Returns whether given vector is in same general direction of this (with option to include perpendiculars).booleanisAway(RMVector3D aVector, boolean includePerpendiculars)Returns whether given vector is pointing away from the direction of this (with option to include perpendiculars).voidnegate()Makes this receiver point in the opposite direction.RMVector3Dnormalize()Makes the vector unit length.java.lang.StringtoString()Returns a string representation of the vector.RMVector3Dtransform(RMTransform3D aTransform)Transforms the vector by the given transform3d.
 
- 
- 
- 
Constructor Detail- 
RMVector3Dpublic RMVector3D(double x, double y, double z)Creates a new vector from the given coords.
 - 
RMVector3Dpublic RMVector3D(RMVector3D aVector) Creates a new vector from the given vector.
 
- 
 - 
Method Detail- 
getMagnitudepublic double getMagnitude() Returns the magnitude of the vector.
 - 
normalizepublic RMVector3D normalize() Makes the vector unit length.
 - 
addpublic void add(RMVector3D aVector) Add the given vector to this.
 - 
getCrossProductpublic RMVector3D getCrossProduct(RMVector3D v2) Returns the vector perpendicular to the receiver and the given vector.
 - 
getDotProductpublic double getDotProduct(RMVector3D v2) Returns the dot product of the receiver and the given vector.
 - 
isAlignedpublic boolean isAligned(RMVector3D aVector, boolean includePerpendiculars) Returns whether given vector is in same general direction of this (with option to include perpendiculars).
 - 
isAwaypublic boolean isAway(RMVector3D aVector, boolean includePerpendiculars) Returns whether given vector is pointing away from the direction of this (with option to include perpendiculars).
 - 
getAngleBetweenpublic double getAngleBetween(RMVector3D aVector) Returns the angle between the receiver and the given vector.
 - 
negatepublic void negate() Makes this receiver point in the opposite direction.
 - 
transformpublic RMVector3D transform(RMTransform3D aTransform) Transforms the vector by the given transform3d.
 - 
toStringpublic java.lang.String toString() Returns a string representation of the vector.- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-