The Vector2D type exposes the following members.

Constructors

  NameDescription
Public methodVector2D()()()()
Initializes a new instance of the Vector2D class
Public methodVector2D(Point2D)
Create a vector from the origin of the coordinate system to the given point
Public methodVector2D(Vector2D)
Initializes a new instance of the Vector2D class
Public methodVector2D(Double, Double)
Create a vector from the origin of the coordinate system to the given point
Public methodVector2D(Point2D, Point2D)
Create a vector from one point to another

Methods

  NameDescription
Public methodDot
Public methodEquals(Object) (Overrides Object..::..Equals(Object).)
Public methodEquals(Vector2D)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode (Overrides Object..::..GetHashCode()()()().)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMult
Public methodNorm
Public methodNormSqr
Vector length (magnitude) squared
Public methodSet
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyX
Public propertyY

See Also