Click or drag to resize

Vector2 Structure

Represent a two component vector of double precision.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax
public struct Vector2 : IEquatable<Vector2>

The Vector2 type exposes the following members.

Constructors
  NameDescription
Public methodVector2(Double)
Initializes a new instance of Vector3.
Public methodVector2(Double)
Initializes a new instance of Vector2.
Public methodVector2(Double, Double)
Initializes a new instance of Vector2.
Top
Properties
  NameDescription
Public propertyItem
Gets or sets a vector element defined by its index.
Public propertyStatic memberNaN
Represents a vector with not a number components.
Public propertyStatic memberUnitX
Unit X vector.
Public propertyStatic memberUnitY
Unit Y vector.
Public propertyX
Gets or sets the X component.
Public propertyY
Gets or sets the Y component.
Public propertyStatic memberZero
Zero vector.
Top
Methods
  NameDescription
Public methodStatic memberAdd
Adds two vectors.
Public methodStatic memberAngle(Vector2)
Obtains the angle of a vector.
Public methodStatic memberAngle(Vector2, Vector2)
Obtains the angle of a line defined by two points.
Public methodStatic memberAngleBetween
Obtains the angle between two vectors.
Public methodStatic memberAreParallel(Vector2, Vector2)
Checks if two vectors are parallel.
Public methodStatic memberAreParallel(Vector2, Vector2, Double)
Checks if two vectors are parallel.
Public methodStatic memberArePerpendicular(Vector2, Vector2)
Checks if two vectors are perpendicular.
Public methodStatic memberArePerpendicular(Vector2, Vector2, Double)
Checks if two vectors are perpendicular.
Public methodStatic memberCrossProduct
Obtains the cross product of two vectors.
Public methodStatic memberDistance
Obtains the distance between two points.
Public methodStatic memberDivide
Divides a vector with an scalar.
Public methodStatic memberDotProduct
Obtains the dot product of two vectors.
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Vector2)
Check if the components of two vectors are approximate equals.
Public methodStatic memberEquals(Vector2, Vector2)
Check if the components of two vectors are approximate equal.
Public methodEquals(Vector2, Double)
Check if the components of two vectors are approximate equals.
Public methodStatic memberEquals(Vector2, Vector2, Double)
Check if the components of two vectors are approximate equal.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodStatic memberIsNaN
Returns a value indicating if any component of the specified vector evaluates to a value that is not a number NaN.
Public methodStatic memberMidPoint
Obtains the midpoint.
Public methodModulus
Obtains the modulus of the vector.
Public methodStatic memberMultiply(Double, Vector2)
Multiplies an scalar with a vector.
Public methodStatic memberMultiply(Vector2, Double)
Multiplies a vector with an scalar.
Public methodStatic memberNegate
Negates a vector.
Public methodNormalize
Normalizes the vector.
Public methodStatic memberNormalize(Vector2)
Normalizes the vector.
Public methodStatic memberPerpendicular
Obtains the counter clockwise perpendicular vector.
Public methodStatic memberPointDistance
Obtains the relative distance of a point from a segment defined by points u and v.
Public methodStatic memberPolar
Obtains the polar point of another point.
Public methodRotate
Rotates the vector.
Public methodStatic memberRound
Rounds the components of a vector.
Public methodStatic memberSquareDistance
Obtains the square distance between two points.
Public methodStatic memberSubtract
Subtracts two vectors.
Public methodToArray
Returns an array that represents the vector.
Public methodToFormattedUnit
Obtains a string that represents the vector formatted according to linear units format.
Public methodToPointF
Obtains the PointF conversion of Vector2.
Public methodToString
Obtains a string that represents the vector.
(Overrides ValueTypeToString.)
Public methodToString(IFormatProvider)
Obtains a string that represents the vector.
Public methodToVector3
Return the 3d vector setting Z coord value to zero.
Top
Operators
  NameDescription
Public operatorStatic memberAddition(Vector2, Vector2)
Adds two vectors.
Public operatorStatic memberAddition(Vector2, Double)
Adds a scalar to a vector.
Public operatorStatic memberDivision
Divides a vector with an scalar.
Public operatorStatic memberEquality
Check if the components of two vectors are equal.
Public operatorStatic memberInequality
Check if the components of two vectors are different.
Public operatorStatic memberMultiply(Double, Vector2)
Multiplies an scalar with a vector.
Public operatorStatic memberMultiply(Vector2, Double)
Multiplies a vector with an scalar.
Public operatorStatic memberSubtraction(Vector2, Vector2)
Subtracts two vectors.
Public operatorStatic memberSubtraction(Vector2, Double)
Subtracts a scalar from a vector.
Public operatorStatic memberUnaryNegation
Negates a vector.
Top
See Also