Struct Vector2
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Vim.Math3d
Assembly: Vim.Math3D.dll
[DataContract]
public readonly struct Vector2 : IEquatable<Vector2>, IComparable<Vector2>
Constructors
View SourceVector2(Single)
public Vector2(float value)
Vector2(Single, Single)
public Vector2(float x, float y)
Vector2((Single x, Single y))
public Vector2((float x, float y) tuple)
Fields
View SourceMaxValue
public static Vector2 MaxValue
MinValue
public static Vector2 MinValue
NumComponents
public const int NumComponents = 2
One
public static Vector2 One
UnitX
public static Vector2 UnitX
UnitY
public static Vector2 UnitY
X
[DataMember]
public readonly float X
Y
[DataMember]
public readonly float Y
Zero
public static Vector2 Zero
Methods
View SourceAlmostEquals(Vector2, Single)
public readonly bool AlmostEquals(Vector2 x, float tolerance = 1E-07F)
AlmostZero(Single)
public readonly bool AlmostZero(float tolerance = 1E-07F)
AnyComponentNegative()
public readonly bool AnyComponentNegative()
CompareTo(Vector2)
public readonly int CompareTo(Vector2 x)
Create(Single, Single)
public static Vector2 Create(float x, float y)
Create((Single x, Single y))
public static Vector2 Create((float x, float y) tuple)
Cross(Vector2)
Computes the cross product of two vectors.
public readonly float Cross(Vector2 v2)
Deconstruct(out Single, out Single)
public readonly void Deconstruct(out float x, out float y)
Dot(Vector2)
public readonly float Dot(Vector2 value)
Dot(Vector2, Vector2)
public static float Dot(Vector2 value1, Vector2 value2)
Equals(Object)
public override readonly bool Equals(object obj)
Overrides
System.ValueType.Equals(System.Object)
View Source
Equals(Vector2)
public readonly bool Equals(Vector2 x)
GetComponent(Int32)
public readonly float GetComponent(int n)
GetHashCode()
public override readonly int GetHashCode()
Overrides
System.ValueType.GetHashCode()
View Source
IsInfinity()
public readonly bool IsInfinity()
IsNaN()
public readonly bool IsNaN()
Magnitude()
public readonly double Magnitude()
MagnitudeSquared()
public readonly double MagnitudeSquared()
MaxComponent()
public readonly float MaxComponent()
MinComponent()
public readonly float MinComponent()
PointCrossProduct(Vector2)
public readonly double PointCrossProduct(Vector2 other)
ProductComponents()
public readonly float ProductComponents()
SetX(Single)
public readonly Vector2 SetX(float x)
SetY(Single)
public readonly Vector2 SetY(float x)
SumComponents()
public readonly float SumComponents()
SumSqrComponents()
public readonly float SumSqrComponents()
ToString()
public override readonly string ToString()
Overrides
System.ValueType.ToString()
Operators
View SourceAddition(Single, Vector2)
public static Vector2 operator +(float value1, Vector2 value2)
Addition(Vector2, Single)
public static Vector2 operator +(Vector2 value1, float value2)
Addition(Vector2, Vector2)
public static Vector2 operator +(Vector2 value1, Vector2 value2)
Division(Single, Vector2)
public static Vector2 operator /(float value1, Vector2 value2)
Division(Vector2, Single)
public static Vector2 operator /(Vector2 value1, float value2)
Division(Vector2, Vector2)
public static Vector2 operator /(Vector2 value1, Vector2 value2)
Equality(Vector2, Vector2)
public static bool operator ==(Vector2 x0, Vector2 x1)
GreaterThan(Vector2, Vector2)
public static bool operator>(Vector2 x0, Vector2 x1)
GreaterThanOrEqual(Vector2, Vector2)
public static bool operator >=(Vector2 x0, Vector2 x1)
Implicit((Single x, Single y) to Vector2)
public static implicit operator Vector2((float x, float y) tuple)
Implicit(Vector2 to (Single x, Single y))
public static implicit operator (float x, float y)(Vector2 self)
Inequality(Vector2, Vector2)
public static bool operator !=(Vector2 x0, Vector2 x1)
LessThan(Vector2, Vector2)
public static bool operator <(Vector2 x0, Vector2 x1)
LessThanOrEqual(Vector2, Vector2)
public static bool operator <=(Vector2 x0, Vector2 x1)
Multiply(Single, Vector2)
public static Vector2 operator *(float value1, Vector2 value2)
Multiply(Vector2, Single)
public static Vector2 operator *(Vector2 value1, float value2)
Multiply(Vector2, Vector2)
public static Vector2 operator *(Vector2 value1, Vector2 value2)
Subtraction(Single, Vector2)
public static Vector2 operator -(float value1, Vector2 value2)
Subtraction(Vector2, Single)
public static Vector2 operator -(Vector2 value1, float value2)
Subtraction(Vector2, Vector2)
public static Vector2 operator -(Vector2 value1, Vector2 value2)
UnaryNegation(Vector2)
public static Vector2 operator -(Vector2 value)
Implements
System.IEquatable<T>
System.IComparable<T>