Vector2 Class

a 2d vector.

Definition

Namespace: Karamba.Geometry
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public class Vector2
Inheritance
Object    Vector2

Constructors

Vector2 Initializes a new instance of the Vector2 class. constructor.

Properties

X Gets the x-component.
Y Gets the y-component.

Methods

Cross Gets the 2d cross product.
Equals Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object))
Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Overrides ObjectGetHashCode)
GetType Gets the Type of the current instance.
(Inherited from Object)
Length Calculates the L2 norm.
MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
ToString Returns a string that represents the current object.
(Inherited from Object)

Operators

Multiply(Double, Vector2) Multiplication of a vector with a scalar.
Multiply(Vector2, Vector2) Gets the scalar product.
Multiply(Vector2, Double) Multiplication of a vector with a scalar.

Extension Methods

ContainerType test if object is (a container like) a list or an array.
(Defined by MiniUtil)

See Also