Vector2 MembersBespoke Osc Library

The Vector2 type exposes the following members.
Constructors

  NameDescription
Public methodVector2(Point)
Initializes a new instance of the Vector2 class.
Public methodVector2(Single, Single)
Initializes a new instance of the Vector2 class.
Back to Top
Methods

  NameDescription
Public methodStatic memberDistance
Compute the distance between two vectors.
Public methodStatic memberDot
Compute the dot product of two vectors.
Public methodEquals
Determines whether the specified System.Object is equal to the Vector.
(Overrides OnlineValueType Equals(Object).)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodStatic memberGetAngle
Get the angle between two vectors.
Public methodGetHashCode
Gets the hash code of this object.
(Overrides OnlineValueType GetHashCode .)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodLength
Get the length of the vector.
Public methodStatic memberLoad
Deserialize a vector.
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodNormalize 
Normalize the vector.
Public methodStatic memberNormalize(Vector2)
Normalize a vector.
Public methodSave
Serialize a vector.
Public methodToPoint
Convert the vector to a OnlinePoint object.
Public methodOnlineToString
Returns the fully qualified type name of this instance.
(Inherited from OnlineValueType.)
Back to Top
Operators

  NameDescription
Public operatorStatic memberAddition
Add two vectors.
Public operatorStatic memberEquality
Compares a vector for equality with another vector.
Public operatorStatic memberInequality
Compares a vector for inequality with another vector.
Public operatorStatic memberMultiply
Scale a Vector2 by a scalar.
Public operatorStatic memberSubtraction
Subtract two vectors.
Public operatorStatic memberUnaryNegation
Negate a Vector2.
Back to Top
Fields

  NameDescription
Public fieldX
The X vector component.
Public fieldY
The Y vector component.
Public fieldStatic memberZero
Gets a Vector2 object with X and Y components.
Back to Top
See Also