Click or drag to resize

Vector Class

2D vector with an x and a y component.
Inheritance Hierarchy
SystemObject
  DHI.Mike1D.Generic.Spatial.GeometryVector

Namespace:  DHI.Mike1D.Generic.Spatial.Geometry
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax
C#
public class Vector

The Vector type exposes the following members.

Constructors
  NameDescription
Public methodVector
Constructor
Top
Properties
  NameDescription
Public propertyX
X component of the vector
Public propertyY
Y component of the vector
Top
Methods
  NameDescription
Public methodAdd
Add vector, updating this vector
Public methodAngle
Mathematical angle, in radians, from positive x-axis and counter-clockwise.

Value is between

-pi <= theta <= pi

Public methodDot
Calculate the dot product of two vectors
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLength
Vector length
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNormalize
Normalize vector to length 1.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodYAngle
Compass heading, in radians, from positive y-axis and clock-wise.

Value is between

-pi <= theta <= pi

Top
Operators
  NameDescription
Public operatorStatic memberAddition
Add this vector and another vector, returning a new vector
Public operatorStatic memberMultiply
Multiply the vector with the provided factor
Top
See Also