Struct T2DPoint
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: VecMatrLib.dll
Syntax
public readonly struct T2DPoint
Constructors
T2DPoint(Double, Double)
Declaration
public T2DPoint(double X, double Y)
Parameters
Type |
Name |
Description |
System.Double |
X |
|
System.Double |
Y |
|
Properties
Item[Int32]
Declaration
public readonly double this[int index] { get; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Type |
Description |
System.Double |
|
Length
Declaration
public readonly double Length { get; }
Property Value
Type |
Description |
System.Double |
|
LengthSquared
Declaration
public readonly double LengthSquared { get; }
Property Value
Type |
Description |
System.Double |
|
Unit
Declaration
public static readonly T2DPoint Unit { get; }
Property Value
UnitX
Declaration
public static readonly T2DPoint UnitX { get; }
Property Value
UnitY
Declaration
public static readonly T2DPoint UnitY { get; }
Property Value
X
Declaration
public double X { readonly get; set; }
Property Value
Type |
Description |
System.Double |
|
Y
Declaration
public double Y { readonly get; set; }
Property Value
Type |
Description |
System.Double |
|
Zero
Declaration
public static readonly T2DPoint Zero { get; }
Property Value
Methods
Distance(T2DPoint, T2DPoint)
Declaration
public static double Distance(T2DPoint p1, T2DPoint p2)
Parameters
Returns
Type |
Description |
System.Double |
|
DistanceSquared(T2DPoint, T2DPoint)
Declaration
public static double DistanceSquared(T2DPoint p1, T2DPoint p2)
Parameters
Returns
Type |
Description |
System.Double |
|
Equals(T2DPoint)
Declaration
public readonly bool Equals(T2DPoint p)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(T2DPoint, T2DPoint)
Declaration
public static bool Equals(T2DPoint p1, T2DPoint p2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(T2DPoint, T2DPoint, Double)
Declaration
public static bool Equals(T2DPoint p1, T2DPoint p2, double tolerance)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override readonly bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
GetLength(T2DPoint)
Declaration
public static double GetLength(T2DPoint v)
Parameters
Returns
Type |
Description |
System.Double |
|
Lerp(T2DPoint, T2DPoint, Double)
Declaration
public static T2DPoint Lerp(T2DPoint p1, T2DPoint p2, double t)
Parameters
Returns
LerpNormal(T2DPoint, T2DPoint, Double)
Declaration
public static T2DPoint LerpNormal(T2DPoint n1, T2DPoint n2, double t)
Parameters
Returns
Norm(T2DPoint)
Declaration
public static T2DPoint Norm(T2DPoint v)
Parameters
Returns
ToString()
Declaration
public override readonly string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
VmV(T2DPoint, T2DPoint)
Declaration
public static double VmV(T2DPoint v1, T2DPoint v2)
Parameters
Returns
Type |
Description |
System.Double |
|
VxV(T2DPoint, T2DPoint)
Declaration
public static double VxV(T2DPoint v1, T2DPoint v2)
Parameters
Returns
Type |
Description |
System.Double |
|
Operators
Addition(T2DPoint, T2DPoint)
Declaration
public static T2DPoint operator +(T2DPoint p1, T2DPoint p2)
Parameters
Returns
Division(T2DPoint, Double)
Declaration
public static T2DPoint operator /(T2DPoint p1, double k)
Parameters
Type |
Name |
Description |
T2DPoint |
p1 |
|
System.Double |
k |
|
Returns
Equality(T2DPoint, T2DPoint)
Declaration
public static bool operator ==(T2DPoint p1, T2DPoint p2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(T2DPoint, T2DPoint)
Declaration
public static bool operator !=(T2DPoint p1, T2DPoint p2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Multiply(T2DPoint, Double)
Declaration
public static T2DPoint operator *(T2DPoint p1, double k)
Parameters
Type |
Name |
Description |
T2DPoint |
p1 |
|
System.Double |
k |
|
Returns
Multiply(Double, T2DPoint)
Declaration
public static T2DPoint operator *(double k, T2DPoint p2)
Parameters
Type |
Name |
Description |
System.Double |
k |
|
T2DPoint |
p2 |
|
Returns
Subtraction(T2DPoint, T2DPoint)
Declaration
public static T2DPoint operator -(T2DPoint p1, T2DPoint p2)
Parameters
Returns
UnaryNegation(T2DPoint)
Declaration
public static T2DPoint operator -(T2DPoint p)
Parameters
Returns