oevislib_net  0.14.3.0
Loading...
Searching...
No Matches

A 2D representation of a vector in the Cartesian space. More...

Inheritance diagram for oevislib_net.Geometry.Vector2D:

Public Member Functions

bool Equals (Vector2D other)
override bool Equals (object obj)
override int GetHashCode ()
override object Clone ()
Vector2D Features
See also
Features
float GetDirection ()
 Computes the vector direction.
float GetLength ()
 Returns the vector length.
float GetLength2 ()
 Returns the vector squared length.
Vector2D Spatial Transforms
Vector2D Resize (float inNewLength)
 Changes the length of the vector, keeping the direction fixed.
Vector2D ResizeRelative (float inDelta)
 Increases or decreases the vector lengths by the provided amount.
Vector2D Rescale (float inScale, bool inInverse)
 Rescales the vector using a scale factor.
Vector2D Rotate (float inAngle, bool inInverse)
 Rotates the vector.

Static Public Member Functions

static implicit operator Point2D (Vector2D inVector)
Vector2D Constructions
See also
Constructions
static Vector2D FromDirection (float inLength, float inDirection)
 Creates a new Vector 2D given length and direction.

Properties

float DeltaX = 0.0f [get, set]
float DeltaY = 0.0f [get, set]

Vector2D Basics

See also
Basics
static bool operator== (Vector2D inVector2D1, Vector2D inVector2D2)
static bool operator!= (Vector2D inVector2D1, Vector2D inVector2D2)
static Vector2D operator- (Vector2D inVector)
 Returns a new vector rotated by 180 deg.
static Vector2D operator* (Vector2D inVector, float inValue)
 Multiplies the vector coordinates by a scalar.
static Vector2D operator* (float inValue, Vector2D inVector)
 Multiplies the vector coordinates by a scalar.
static Vector2D operator+ (Vector2D inVector1, Vector2D inVector2)
 Sums both vector dimensions.
static Vector2D operator- (Vector2D inVector1, Vector2D inVector2)
 Subtracts both vector dimensions.
static Vector2D Deserialize (ByteBuffer inBuffer)
 De-serialize a Vector2D buffer.
static float CrossProduct (Vector2D inVector1, Vector2D inVector2)
 Returns the cross product of two vectors.
static float DotProduct (Vector2D inVector1, Vector2D inVector2)
 Returns the dot product of two vectors.
 Vector2D ()
 Creates a default Vector2D with length 0.
 Vector2D (int inDeltaX, int inDeltaY)
 Creates a new Vector2D given its dimensions.
 Vector2D (float inDeltaX, float inDeltaY)
 Creates a new Vector2D given its dimensions.
 Vector2D (Point2D inFrom, Point2D inTo)
 Creates a new Vector2D using the provided points.
ByteBuffer Serialize ()
 Serializes the object.

Detailed Description

A 2D representation of a vector in the Cartesian space.