Class T3DPoint
Inheritance
object
T3DPoint
Namespace: SprutCAMTech.VecMatrLib
Assembly: SprutCAMTech.VecMatrLib.dll
Syntax
public sealed class T3DPoint : ValueType
Constructors
T3DPoint(double, double, double)
Declaration
public T3DPoint(double X, double Y, double Z)
Parameters
Type |
Name |
Description |
double |
X |
|
double |
Y |
|
double |
Z |
|
T3DPoint(int, int, int, double, double, double)
Declaration
public T3DPoint(int i1, int i2, int i3, double c1, double c2, double c3)
Parameters
Type |
Name |
Description |
int |
i1 |
|
int |
i2 |
|
int |
i3 |
|
double |
c1 |
|
double |
c2 |
|
double |
c3 |
|
Fields
Unit
Declaration
public static T3DPoint Unit
Field Value
UnitX
Declaration
public static T3DPoint UnitX
Field Value
UnitY
Declaration
public static T3DPoint UnitY
Field Value
UnitZ
Declaration
public static T3DPoint UnitZ
Field Value
Zero
Declaration
public static T3DPoint Zero
Field Value
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
X
Declaration
public double X { get; init; }
Property Value
Y
Declaration
public double Y { get; init; }
Property Value
Z
Declaration
public double Z { get; init; }
Property Value
Methods
Distance(T3DPoint, T3DPoint)
Declaration
public static double Distance(T3DPoint p1, T3DPoint p2)
Parameters
Returns
DistanceSquared(T3DPoint, T3DPoint)
Declaration
public static double DistanceSquared(T3DPoint p1, T3DPoint p2)
Parameters
Returns
Equals(T3DPoint, T3DPoint, double)
Declaration
public static bool Equals(T3DPoint p1, T3DPoint p2, double tolerance)
Parameters
Returns
Equals(T3DPoint, T3DPoint)
Declaration
public static bool Equals(T3DPoint p1, T3DPoint p2)
Parameters
Returns
Equals(T3DPoint)
Declaration
public bool Equals(T3DPoint 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(T3DPoint)
Declaration
public static double GetLength(T3DPoint v)
Parameters
Returns
GetStdProjectionPlane(T3DPoint, out int, out int)
Declaration
public static int GetStdProjectionPlane(T3DPoint n, out int xi, out int yi)
Parameters
Type |
Name |
Description |
T3DPoint |
n |
|
int |
xi |
|
int |
yi |
|
Returns
Lerp(T3DPoint, T3DPoint, double)
Declaration
public static T3DPoint Lerp(T3DPoint p1, T3DPoint p2, double t)
Parameters
Returns
LerpNormal(T3DPoint, T3DPoint, double)
Declaration
public static T3DPoint LerpNormal(T3DPoint n1, T3DPoint n2, double t)
Parameters
Returns
Norm()
Declaration
Returns
Norm(T3DPoint)
Declaration
public static T3DPoint Norm(T3DPoint v)
Parameters
Returns
Refine(T3DPoint, double)
Declaration
public static T3DPoint Refine(T3DPoint p, double tolerance)
Parameters
Type |
Name |
Description |
T3DPoint |
p |
|
double |
tolerance |
|
Returns
SLerpNormal(T3DPoint, T3DPoint, double)
Declaration
public static T3DPoint SLerpNormal(T3DPoint n1, T3DPoint n2, double t)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
TryNorm(ref T3DPoint, double)
Declaration
public static bool TryNorm(ref T3DPoint v, double zero)
Parameters
Type |
Name |
Description |
T3DPoint |
v |
|
double |
zero |
|
Returns
TryNorm(ref T3DPoint)
Declaration
public static bool TryNorm(ref T3DPoint v)
Parameters
Returns
VmV(T3DPoint, T3DPoint)
Declaration
public static double VmV(T3DPoint v1, T3DPoint v2)
Parameters
Returns
VxV(T3DPoint, T3DPoint)
Declaration
public static T3DPoint VxV(T3DPoint v1, T3DPoint v2)
Parameters
Returns
Operators
operator +(T3DPoint, T3DPoint)
Declaration
public static T3DPoint operator +(T3DPoint p1, T3DPoint p2)
Parameters
Returns
operator /(T3DPoint, double)
Declaration
public static T3DPoint operator /(T3DPoint p1, double k)
Parameters
Type |
Name |
Description |
T3DPoint |
p1 |
|
double |
k |
|
Returns
operator ==(T3DPoint, T3DPoint)
Declaration
public static bool operator ==(T3DPoint p1, T3DPoint p2)
Parameters
Returns
implicit operator T3DPoint((double, double, double))
Declaration
public static implicit operator T3DPoint((double, double, double) p)
Parameters
Type |
Name |
Description |
(double, double, double) |
p |
|
Returns
operator !=(T3DPoint, T3DPoint)
Declaration
public static bool operator !=(T3DPoint p1, T3DPoint p2)
Parameters
Returns
operator *(T3DPoint, double)
Declaration
public static T3DPoint operator *(T3DPoint p1, double k)
Parameters
Type |
Name |
Description |
T3DPoint |
p1 |
|
double |
k |
|
Returns
operator *(double, T3DPoint)
Declaration
public static T3DPoint operator *(double k, T3DPoint p2)
Parameters
Type |
Name |
Description |
double |
k |
|
T3DPoint |
p2 |
|
Returns
operator -(T3DPoint, T3DPoint)
Declaration
public static T3DPoint operator -(T3DPoint p1, T3DPoint p2)
Parameters
Returns
operator -(T3DPoint)
Declaration
public static T3DPoint operator -(T3DPoint p)
Parameters
Returns