Class T2DPoint
Inheritance
object
T2DPoint
Namespace: SprutCAMTech.VecMatrLib
Assembly: SprutCAMTech.VecMatrLib.dll
Syntax
public sealed class T2DPoint : ValueType
Constructors
T2DPoint(double, double)
Declaration
public T2DPoint(double X, double Y)
Parameters
Type |
Name |
Description |
double |
X |
|
double |
Y |
|
Properties
this[int]
Declaration
public double this[int index] { get; }
Parameters
Type |
Name |
Description |
int |
index |
|
Property Value
Length
Declaration
public double Length { get; }
Property Value
LengthSquared
Declaration
public double LengthSquared { get; }
Property Value
Unit
Declaration
public static T2DPoint Unit { get; }
Property Value
UnitX
Declaration
public static T2DPoint UnitX { get; }
Property Value
UnitY
Declaration
public static T2DPoint UnitY { get; }
Property Value
X
Declaration
public double X { get; init; }
Property Value
Y
Declaration
public double Y { get; init; }
Property Value
Zero
Declaration
public static T2DPoint Zero { get; }
Property Value
Methods
Distance(T2DPoint, T2DPoint)
Declaration
public static double Distance(T2DPoint p1, T2DPoint p2)
Parameters
Returns
DistanceSquared(T2DPoint, T2DPoint)
Declaration
public static double DistanceSquared(T2DPoint p1, T2DPoint p2)
Parameters
Returns
Equals(T2DPoint, T2DPoint, double)
Declaration
public static bool Equals(T2DPoint p1, T2DPoint p2, double tolerance)
Parameters
Returns
Equals(T2DPoint, T2DPoint)
Declaration
public static bool Equals(T2DPoint p1, T2DPoint p2)
Parameters
Returns
Equals(T2DPoint)
Declaration
public bool Equals(T2DPoint p)
Parameters
Returns
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
GetLength(T2DPoint)
Declaration
public static double GetLength(T2DPoint v)
Parameters
Returns
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 string ToString()
Returns
VmV(T2DPoint, T2DPoint)
Declaration
public static double VmV(T2DPoint v1, T2DPoint v2)
Parameters
Returns
VxV(T2DPoint, T2DPoint)
Declaration
public static double VxV(T2DPoint v1, T2DPoint v2)
Parameters
Returns
Operators
operator +(T2DPoint, T2DPoint)
Declaration
public static T2DPoint operator +(T2DPoint p1, T2DPoint p2)
Parameters
Returns
operator /(T2DPoint, double)
Declaration
public static T2DPoint operator /(T2DPoint p1, double k)
Parameters
Type |
Name |
Description |
T2DPoint |
p1 |
|
double |
k |
|
Returns
operator ==(T2DPoint, T2DPoint)
Declaration
public static bool operator ==(T2DPoint p1, T2DPoint p2)
Parameters
Returns
operator !=(T2DPoint, T2DPoint)
Declaration
public static bool operator !=(T2DPoint p1, T2DPoint p2)
Parameters
Returns
operator *(T2DPoint, double)
Declaration
public static T2DPoint operator *(T2DPoint p1, double k)
Parameters
Type |
Name |
Description |
T2DPoint |
p1 |
|
double |
k |
|
Returns
operator *(double, T2DPoint)
Declaration
public static T2DPoint operator *(double k, T2DPoint p2)
Parameters
Type |
Name |
Description |
double |
k |
|
T2DPoint |
p2 |
|
Returns
operator -(T2DPoint, T2DPoint)
Declaration
public static T2DPoint operator -(T2DPoint p1, T2DPoint p2)
Parameters
Returns
operator -(T2DPoint)
Declaration
public static T2DPoint operator -(T2DPoint p)
Parameters
Returns