Struct T3DPoint
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 T3DPoint
Constructors
T3DPoint(Double, Double, Double)
Declaration
public T3DPoint(double X, double Y, double Z)
Parameters
Type |
Name |
Description |
System.Double |
X |
|
System.Double |
Y |
|
System.Double |
Z |
|
T3DPoint(Int32, Int32, Int32, Double, Double, Double)
Declaration
public T3DPoint(int i1, int i2, int i3, double c1, double c2, double c3)
Parameters
Type |
Name |
Description |
System.Int32 |
i1 |
|
System.Int32 |
i2 |
|
System.Int32 |
i3 |
|
System.Double |
c1 |
|
System.Double |
c2 |
|
System.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
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 |
|
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 |
|
Z
Declaration
public double Z { readonly get; set; }
Property Value
Type |
Description |
System.Double |
|
Methods
Distance(T3DPoint, T3DPoint)
Declaration
public static double Distance(T3DPoint p1, T3DPoint p2)
Parameters
Returns
Type |
Description |
System.Double |
|
DistanceSquared(T3DPoint, T3DPoint)
Declaration
public static double DistanceSquared(T3DPoint p1, T3DPoint p2)
Parameters
Returns
Type |
Description |
System.Double |
|
Equals(T3DPoint)
Declaration
public readonly bool Equals(T3DPoint p)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(T3DPoint, T3DPoint)
Declaration
public static bool Equals(T3DPoint p1, T3DPoint p2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(T3DPoint, T3DPoint, Double)
Declaration
public static bool Equals(T3DPoint p1, T3DPoint 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(T3DPoint)
Declaration
public static double GetLength(T3DPoint v)
Parameters
Returns
Type |
Description |
System.Double |
|
GetStdProjectionPlane(T3DPoint, out Int32, out Int32)
Declaration
public static int GetStdProjectionPlane(T3DPoint n, out int xi, out int yi)
Parameters
Type |
Name |
Description |
T3DPoint |
n |
|
System.Int32 |
xi |
|
System.Int32 |
yi |
|
Returns
Type |
Description |
System.Int32 |
|
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
public readonly T3DPoint Norm()
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 |
|
System.Double |
tolerance |
|
Returns
SLerpNormal(T3DPoint, T3DPoint, Double)
Declaration
public static T3DPoint SLerpNormal(T3DPoint n1, T3DPoint n2, double t)
Parameters
Returns
ToString()
Declaration
public override readonly string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
TryNorm(ref T3DPoint)
Declaration
public static bool TryNorm(ref T3DPoint v)
Parameters
Returns
Type |
Description |
System.Boolean |
|
TryNorm(ref T3DPoint, Double)
Declaration
public static bool TryNorm(ref T3DPoint v, double zero)
Parameters
Type |
Name |
Description |
T3DPoint |
v |
|
System.Double |
zero |
|
Returns
Type |
Description |
System.Boolean |
|
VmV(T3DPoint, T3DPoint)
Declaration
public static double VmV(T3DPoint v1, T3DPoint v2)
Parameters
Returns
Type |
Description |
System.Double |
|
VxV(T3DPoint, T3DPoint)
Declaration
public static T3DPoint VxV(T3DPoint v1, T3DPoint v2)
Parameters
Returns
Operators
Addition(T3DPoint, T3DPoint)
Declaration
public static T3DPoint operator +(T3DPoint p1, T3DPoint p2)
Parameters
Returns
Division(T3DPoint, Double)
Declaration
public static T3DPoint operator /(T3DPoint p1, double k)
Parameters
Type |
Name |
Description |
T3DPoint |
p1 |
|
System.Double |
k |
|
Returns
Equality(T3DPoint, T3DPoint)
Declaration
public static bool operator ==(T3DPoint p1, T3DPoint p2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implicit((Double X, Double Y, Double Z) to T3DPoint)
Declaration
public static implicit operator T3DPoint((double X, double Y, double Z) p)
Parameters
Type |
Name |
Description |
System.ValueTuple<System.Double, System.Double, System.Double> |
p |
|
Returns
Inequality(T3DPoint, T3DPoint)
Declaration
public static bool operator !=(T3DPoint p1, T3DPoint p2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Multiply(T3DPoint, Double)
Declaration
public static T3DPoint operator *(T3DPoint p1, double k)
Parameters
Type |
Name |
Description |
T3DPoint |
p1 |
|
System.Double |
k |
|
Returns
Multiply(Double, T3DPoint)
Declaration
public static T3DPoint operator *(double k, T3DPoint p2)
Parameters
Type |
Name |
Description |
System.Double |
k |
|
T3DPoint |
p2 |
|
Returns
Subtraction(T3DPoint, T3DPoint)
Declaration
public static T3DPoint operator -(T3DPoint p1, T3DPoint p2)
Parameters
Returns
UnaryNegation(T3DPoint)
Declaration
public static T3DPoint operator -(T3DPoint p)
Parameters
Returns