Click or drag to resize

VectorD2D Structure

Represents a vector with members of type Double in 2D space.
Inheritance Hierarchy
SystemObject
  SystemValueType
    Altaxo.GeometryVectorD2D

Namespace: Altaxo.Geometry
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public struct VectorD2D : IEquatable<VectorD2D>

The VectorD2D type exposes the following members.

Constructors
 NameDescription
Public methodVectorD2D Initializes a new instance of the VectorD2D struct.
Top
Properties
 NameDescription
Public propertyStatic memberEmpty Gets an empty vector (0,0).
Public propertyIsEmpty Gets a value indicating whether this instance is empty, i.e. all elements are zero.
Public propertyLength Gets the length of the vector.
Public propertyNormalized Gets the normalized version of this vector (length 1).
Public propertySquareOfLength Gets the squared length of the vector.
Public propertyX Gets the x component of this vector.
Public propertyY Gets the y component of this vector.
Top
Methods
 NameDescription
Public methodStatic memberAngleBetweenInRadians Calculates the angle between two vectors in radians.
Public methodStatic memberCreateNormalized(VectorD2D) Creates a normalized version of the given vector.
Public methodStatic memberCreateNormalized(Double, Double) Creates a normalized vector from the given x and y components.
Public methodStatic memberCreateScaled Creates a scaled version of the given vector.
Public methodStatic memberCreateSum Creates a vector that is the sum of two vectors.
Public methodStatic memberDotProduct Calculates the dot product of two vectors.
Public methodEquals(Object)Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
Public methodEquals(VectorD2D)Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberMultiplicationElementwise Multiplies two vectors elementwise.
Public methodToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)
Public methodWithX Returns a new instance with X set to the provided value.
Public methodWithY Returns a new instance with Y set to the provided value.
Top
Operators
 NameDescription
Public operatorStatic memberAddition(VectorD2D, VectorD2D) Adds two vectors component-wise.
Public operatorStatic memberDivision(VectorD2D, Double) Divides a vector by a scalar.
Public operatorStatic memberEquality(VectorD2D, VectorD2D) Checks if two vectors are equal.
Public operatorStatic member(PointD2D to VectorD2D) Converts a PointD2D to a VectorD2D.
Public operatorStatic memberInequality(VectorD2D, VectorD2D) Checks if two vectors are not equal.
Public operatorStatic memberMultiply(Double, VectorD2D) Multiplies a scalar by a vector.
Public operatorStatic memberMultiply(VectorD2D, Double) Multiplies a vector by a scalar.
Public operatorStatic memberSubtraction(VectorD2D, VectorD2D) Subtracts two vectors component-wise.
Public operatorStatic memberUnaryNegation(VectorD2D) Negates a vector.
Top
See Also