Struct DVector2
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 DVector2 : IEquatable<DVector2>, IComparable<DVector2>
Constructors
View SourceDVector2(Double)
public DVector2(double value)
DVector2(Double, Double)
public DVector2(double x, double y)
DVector2((Double x, Double y))
public DVector2((double x, double y) tuple)
Fields
View SourceMaxValue
public static DVector2 MaxValue
MinValue
public static DVector2 MinValue
NumComponents
public const int NumComponents = 2
One
public static DVector2 One
UnitX
public static DVector2 UnitX
UnitY
public static DVector2 UnitY
X
[DataMember]
public readonly double X
Y
[DataMember]
public readonly double Y
Zero
public static DVector2 Zero
Properties
View SourceVector2
public readonly Vector2 Vector2 { get; }
Methods
View SourceAlmostEquals(DVector2, Single)
public readonly bool AlmostEquals(DVector2 x, float tolerance = 1E-07F)
AlmostZero(Single)
public readonly bool AlmostZero(float tolerance = 1E-07F)
AnyComponentNegative()
public readonly bool AnyComponentNegative()
CompareTo(DVector2)
public readonly int CompareTo(DVector2 x)
Create(Double, Double)
public static DVector2 Create(double x, double y)
Create((Double x, Double y))
public static DVector2 Create((double x, double y) tuple)
Deconstruct(out Double, out Double)
public readonly void Deconstruct(out double x, out double y)
Dot(DVector2)
public readonly double Dot(DVector2 value)
Dot(DVector2, DVector2)
public static double Dot(DVector2 value1, DVector2 value2)
Equals(Object)
public override readonly bool Equals(object obj)
Overrides
System.ValueType.Equals(System.Object)
View Source
Equals(DVector2)
public readonly bool Equals(DVector2 x)
GetComponent(Int32)
public readonly double 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 double MaxComponent()
MinComponent()
public readonly double MinComponent()
ProductComponents()
public readonly double ProductComponents()
SetX(Double)
public readonly DVector2 SetX(double x)
SetY(Double)
public readonly DVector2 SetY(double x)
SumComponents()
public readonly double SumComponents()
SumSqrComponents()
public readonly double SumSqrComponents()
ToString()
public override readonly string ToString()
Overrides
System.ValueType.ToString()
Operators
View SourceAddition(Double, DVector2)
public static DVector2 operator +(double value1, DVector2 value2)
Addition(DVector2, Double)
public static DVector2 operator +(DVector2 value1, double value2)
Addition(DVector2, DVector2)
public static DVector2 operator +(DVector2 value1, DVector2 value2)
Division(Double, DVector2)
public static DVector2 operator /(double value1, DVector2 value2)
Division(DVector2, Double)
public static DVector2 operator /(DVector2 value1, double value2)
Division(DVector2, DVector2)
public static DVector2 operator /(DVector2 value1, DVector2 value2)
Equality(DVector2, DVector2)
public static bool operator ==(DVector2 x0, DVector2 x1)
GreaterThan(DVector2, DVector2)
public static bool operator>(DVector2 x0, DVector2 x1)
GreaterThanOrEqual(DVector2, DVector2)
public static bool operator >=(DVector2 x0, DVector2 x1)
Implicit((Double x, Double y) to DVector2)
public static implicit operator DVector2((double x, double y) tuple)
Implicit(DVector2 to (Double x, Double y))
public static implicit operator (double x, double y)(DVector2 self)
Inequality(DVector2, DVector2)
public static bool operator !=(DVector2 x0, DVector2 x1)
LessThan(DVector2, DVector2)
public static bool operator <(DVector2 x0, DVector2 x1)
LessThanOrEqual(DVector2, DVector2)
public static bool operator <=(DVector2 x0, DVector2 x1)
Multiply(Double, DVector2)
public static DVector2 operator *(double value1, DVector2 value2)
Multiply(DVector2, Double)
public static DVector2 operator *(DVector2 value1, double value2)
Multiply(DVector2, DVector2)
public static DVector2 operator *(DVector2 value1, DVector2 value2)
Subtraction(Double, DVector2)
public static DVector2 operator -(double value1, DVector2 value2)
Subtraction(DVector2, Double)
public static DVector2 operator -(DVector2 value1, double value2)
Subtraction(DVector2, DVector2)
public static DVector2 operator -(DVector2 value1, DVector2 value2)
UnaryNegation(DVector2)
public static DVector2 operator -(DVector2 value)
Implements
System.IEquatable<T>
System.IComparable<T>