Class RMVector


  • public class RMVector
    extends java.lang.Object
    This class represents a 2D vector.
    • Constructor Summary

      Constructors 
      Constructor Description
      RMVector​(float X, float Y)
      Creates a new vector.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float getDotProduct​(RMVector v2)
      Returns the dot product of the receiver and the given vector.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RMVector

        public RMVector​(float X,
                        float Y)
        Creates a new vector.
    • Method Detail

      • getDotProduct

        public float getDotProduct​(RMVector v2)
        Returns the dot product of the receiver and the given vector.