[This is preliminary documentation and is subject to change.]

A two-dimensional vector with floating-point values

Namespace:  OpenMetaverse
Assembly:  OpenMetaverseTypes (in OpenMetaverseTypes.dll) Version: 0.0.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
[SerializableAttribute]
public struct Vector2 : IComparable<Vector2>, 
	IEquatable<Vector2>
<SerializableAttribute> _
Public Structure Vector2 _
	Implements IComparable(Of Vector2), IEquatable(Of Vector2)
[SerializableAttribute]
public value class Vector2 : IComparable<Vector2>, 
	IEquatable<Vector2>

Members

            
 All Members  Constructors   Fields   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
Vector2(Vector2)
Vector2(Single)
Vector2(Single, Single)
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(Vector2)
Equals(Object) (Overrides ValueType..::.Equals(Object).)
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

See Also