Documentation of 'org.jzy3d.maths.Vector2d' Java class
Vector2d
org.jzy3d.maths

Class Vector2d



  • public class Vector2d
    extends java.lang.Object
    Storage for a 2 dimensional vector defined by two points. Provide the vector function that returns the vector as a Coord3d, as well as dot product and norm.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Vector2d(Coord2d p1, Coord2d p2)
      Create a vector, described by two coordinates.
      Vector2d(float x1, float y1, float x2, float y2)
      Create a vector, described by two points.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      float dot(Vector2d v)
      Compute the dot product between and current and given vector.
      float norm()
      Compute the norm of this vector.
      Coord2d vector()
      Return the vector induced by this set of coordinates.
      • Methods inherited from class java.lang.Object

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

      • Vector2d

        public Vector2d(float x1,
                        float y1,
                        float x2,
                        float y2)
        Create a vector, described by two points.
      • Vector2d

        public Vector2d(Coord2d p1,
                        Coord2d p2)
        Create a vector, described by two coordinates.
    • Method Detail

      • vector

        public Coord2d vector()
        Return the vector induced by this set of coordinates.
      • dot

        public float dot(Vector2d v)
        Compute the dot product between and current and given vector.
        Parameters:
        v - input vector
        Returns:
        the dot product
      • norm

        public float norm()
        Compute the norm of this vector.
        Returns:
        the norm

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.