• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Vim.Math3d
    • AABox
    • AABox2D
    • AABox4D
    • AngularMotion
    • AxisAngle
    • Byte2
    • Byte3
    • Byte4
    • ColorHDR
    • ColorRGB
    • ColorRGBA
    • Complex
    • Constants
    • ContainmentType
    • CylindricalCoordinate
    • DAABox
    • DAABox2D
    • DAABox4D
    • DInterval
    • DPlane
    • DQuaternion
    • DRay
    • DSphere
    • DVector2
    • DVector3
    • DVector4
    • Euler
    • GeoCoordinate
    • Hash
    • HorizontalCoordinate
    • IMappable<TContainer, TPart>
    • Int2
    • Int3
    • Int4
    • Interval
    • IPoints
    • IPoints2D
    • ITransformable3D<TSelf>
    • Line
    • Line2D
    • LinearMotion
    • LinqUtil
    • LogPolarCoordinate
    • MathOps
    • Matrix4x4
    • Motion
    • MovementExtensions
    • Plane
    • PlaneIntersectionType
    • PolarCoordinate
    • Quad
    • Quad2D
    • Quaternion
    • Ray
    • Sphere
    • SphericalCoordinate
    • StatelessRandom
    • Stats<T>
    • Transform
    • Transformable3D
    • Triangle
    • Triangle2D
    • Vector2
    • Vector3
    • Vector4

Struct DVector2

Implements
System.IEquatable<DVector2>
System.IComparable<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 Source

DVector2(Double)

public DVector2(double value)
View Source

DVector2(Double, Double)

public DVector2(double x, double y)
View Source

DVector2((Double x, Double y))

public DVector2((double x, double y) tuple)

Fields

View Source

MaxValue

public static DVector2 MaxValue
View Source

MinValue

public static DVector2 MinValue
View Source

NumComponents

public const int NumComponents = 2
View Source

One

public static DVector2 One
View Source

UnitX

public static DVector2 UnitX
View Source

UnitY

public static DVector2 UnitY
View Source

X

[DataMember]
public readonly double X
View Source

Y

[DataMember]
public readonly double Y
View Source

Zero

public static DVector2 Zero

Properties

View Source

Vector2

public readonly Vector2 Vector2 { get; }

Methods

View Source

AlmostEquals(DVector2, Single)

public readonly bool AlmostEquals(DVector2 x, float tolerance = 1E-07F)
View Source

AlmostZero(Single)

public readonly bool AlmostZero(float tolerance = 1E-07F)
View Source

AnyComponentNegative()

public readonly bool AnyComponentNegative()
View Source

CompareTo(DVector2)

public readonly int CompareTo(DVector2 x)
View Source

Create(Double, Double)

public static DVector2 Create(double x, double y)
View Source

Create((Double x, Double y))

public static DVector2 Create((double x, double y) tuple)
View Source

Deconstruct(out Double, out Double)

public readonly void Deconstruct(out double x, out double y)
View Source

Dot(DVector2)

public readonly double Dot(DVector2 value)
View Source

Dot(DVector2, DVector2)

public static double Dot(DVector2 value1, DVector2 value2)
View Source

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)
View Source

GetComponent(Int32)

public readonly double GetComponent(int n)
View Source

GetHashCode()

public override readonly int GetHashCode()
Overrides
System.ValueType.GetHashCode()
View Source

IsInfinity()

public readonly bool IsInfinity()
View Source

IsNaN()

public readonly bool IsNaN()
View Source

Magnitude()

public readonly double Magnitude()
View Source

MagnitudeSquared()

public readonly double MagnitudeSquared()
View Source

MaxComponent()

public readonly double MaxComponent()
View Source

MinComponent()

public readonly double MinComponent()
View Source

ProductComponents()

public readonly double ProductComponents()
View Source

SetX(Double)

public readonly DVector2 SetX(double x)
View Source

SetY(Double)

public readonly DVector2 SetY(double x)
View Source

SumComponents()

public readonly double SumComponents()
View Source

SumSqrComponents()

public readonly double SumSqrComponents()
View Source

ToString()

public override readonly string ToString()
Overrides
System.ValueType.ToString()

Operators

View Source

Addition(Double, DVector2)

public static DVector2 operator +(double value1, DVector2 value2)
View Source

Addition(DVector2, Double)

public static DVector2 operator +(DVector2 value1, double value2)
View Source

Addition(DVector2, DVector2)

public static DVector2 operator +(DVector2 value1, DVector2 value2)
View Source

Division(Double, DVector2)

public static DVector2 operator /(double value1, DVector2 value2)
View Source

Division(DVector2, Double)

public static DVector2 operator /(DVector2 value1, double value2)
View Source

Division(DVector2, DVector2)

public static DVector2 operator /(DVector2 value1, DVector2 value2)
View Source

Equality(DVector2, DVector2)

public static bool operator ==(DVector2 x0, DVector2 x1)
View Source

GreaterThan(DVector2, DVector2)

public static bool operator>(DVector2 x0, DVector2 x1)
View Source

GreaterThanOrEqual(DVector2, DVector2)

public static bool operator >=(DVector2 x0, DVector2 x1)
View Source

Implicit((Double x, Double y) to DVector2)

public static implicit operator DVector2((double x, double y) tuple)
View Source

Implicit(DVector2 to (Double x, Double y))

public static implicit operator (double x, double y)(DVector2 self)
View Source

Inequality(DVector2, DVector2)

public static bool operator !=(DVector2 x0, DVector2 x1)
View Source

LessThan(DVector2, DVector2)

public static bool operator <(DVector2 x0, DVector2 x1)
View Source

LessThanOrEqual(DVector2, DVector2)

public static bool operator <=(DVector2 x0, DVector2 x1)
View Source

Multiply(Double, DVector2)

public static DVector2 operator *(double value1, DVector2 value2)
View Source

Multiply(DVector2, Double)

public static DVector2 operator *(DVector2 value1, double value2)
View Source

Multiply(DVector2, DVector2)

public static DVector2 operator *(DVector2 value1, DVector2 value2)
View Source

Subtraction(Double, DVector2)

public static DVector2 operator -(double value1, DVector2 value2)
View Source

Subtraction(DVector2, Double)

public static DVector2 operator -(DVector2 value1, double value2)
View Source

Subtraction(DVector2, DVector2)

public static DVector2 operator -(DVector2 value1, DVector2 value2)
View Source

UnaryNegation(DVector2)

public static DVector2 operator -(DVector2 value)

Implements

System.IEquatable<T>
System.IComparable<T>

Extension Methods

MathOps.Add(DVector2, DVector2)
MathOps.Subtract(DVector2, DVector2)
MathOps.Multiply(DVector2, DVector2)
MathOps.Divide(DVector2, DVector2)
MathOps.Negate(DVector2)
MathOps.Lerp(DVector2, DVector2, Single)
MathOps.InverseLerp(DVector2, DVector2, DVector2)
MathOps.LerpPrecise(DVector2, DVector2, Single)
MathOps.ClampLower(DVector2, DVector2)
MathOps.ClampUpper(DVector2, DVector2)
MathOps.Clamp(DVector2, DVector2, DVector2)
MathOps.Average(DVector2, DVector2)
MathOps.Barycentric(DVector2, DVector2, DVector2, Single, Single)
MathOps.DistanceSquared(DVector2, DVector2)
MathOps.Distance(DVector2, DVector2)
MathOps.LengthSquared(DVector2)
MathOps.Length(DVector2)
MathOps.Normalize(DVector2)
MathOps.SafeNormalize(DVector2)
MathOps.Dot(DVector2, DVector2)
MathOps.Min(DVector2, DVector2)
MathOps.Max(DVector2, DVector2)
MathOps.SquareRoot(DVector2)
MathOps.Abs(DVector2)
MathOps.Acos(DVector2)
MathOps.Asin(DVector2)
MathOps.Atan(DVector2)
MathOps.Cos(DVector2)
MathOps.Cosh(DVector2)
MathOps.Exp(DVector2)
MathOps.Log(DVector2)
MathOps.Log10(DVector2)
MathOps.Sin(DVector2)
MathOps.Sinh(DVector2)
MathOps.Sqrt(DVector2)
MathOps.Tan(DVector2)
MathOps.Tanh(DVector2)
MathOps.Inverse(DVector2)
MathOps.Ceiling(DVector2)
MathOps.Floor(DVector2)
MathOps.Round(DVector2)
MathOps.Truncate(DVector2)
MathOps.Sqr(DVector2)
MathOps.Cube(DVector2)
MathOps.ToRadians(DVector2)
MathOps.ToDegrees(DVector2)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright VIM 2021, Generated by DocFX