OpenMetaverse Protocol Library Developers API Documentation
Vector2 Structure
NamespacesOpenMetaverseVector2
A two-dimensional vector with floating-point values
Declaration Syntax
C#
[
SerializableAttribute]
public 
struct 
Vector2 : 
IComparable<
Vector2>, 
        
IEquatable<
Vector2>
Members
All Members Constructors Methods Fields



Icon Member Description
Vector2(Single, Single)
Initializes a new instance of the Vector2class

Vector2(Single)
Initializes a new instance of the Vector2class

Vector2(Vector2)
Initializes a new instance of the Vector2class

Add(Vector2, Vector2)
Addition(Vector2, Vector2)
ApproxEquals(Vector2, Single)
Test if this vector is equal to another vector, within a given tolerance range

Clamp(Vector2, Vector2, Vector2)
CompareTo(Vector2)
IComparable.CompareTo implementation

Distance(Vector2, Vector2)
DistanceSquared(Vector2, Vector2)
Divide(Vector2, Vector2)
Divide(Vector2, Single)
Division(Vector2, Vector2)
Division(Vector2, Single)
Dot(Vector2, Vector2)
Equality(Vector2, Vector2)
Equals(Object) (Overrides ValueType. Equals(Object).)
Equals(Vector2)
FromBytes( array< Byte > [] () [] [] , Int32)
Builds a vector from a byte array

GetBytes () () () ()
Returns the raw bytes for this vector

GetHashCode () () () () (Overrides ValueType. GetHashCode () () () () .)
Inequality(Vector2, Vector2)
IsFinite () () () ()
Test if this vector is composed of all finite numbers

Length () () () ()
LengthSquared () () () ()
Lerp(Vector2, Vector2, Single)
Max(Vector2, Vector2)
Min(Vector2, Vector2)
Multiply(Vector2, Vector2)
Multiply(Vector2, Single)
Multiply(Vector2, Vector2)
Multiply(Vector2, Single)
Negate(Vector2)
Normalize () () () ()
Normalize(Vector2)
One
A vector with a value of 1,1

Parse(String)
Parse a vector from a string

SmoothStep(Vector2, Vector2, Single)
Interpolates between two vectors using a cubic equation

Subtract(Vector2, Vector2)
Subtraction(Vector2, Vector2)
ToBytes( array< Byte > [] () [] [] , Int32)
Writes the raw bytes for this vector to a byte array

ToRawString () () () ()
Get a string representation of the vector elements with up to three decimal digits and separated by spaces only

ToString () () () ()
Get a formatted string representation of the vector
(Overrides ValueType. ToString () () () () .)
Transform(Vector2, Matrix4)
TransformNormal(Vector2, Matrix4)
TryParse(String, Vector3 % )
UnaryNegation(Vector2)
UnitX
A vector with a value of 1,0

UnitY
A vector with a value of 0,1

X
X value

Y
Y value

Zero
A vector with a value of 0,0

Assembly: OpenMetaverseTypes(Module: OpenMetaverseTypes.dll) Version: 0.0.0.0