Class Point3<T>
- Namespace
- FellowOakDicom.Imaging.Mathematics
- Assembly
- fo-dicom.core.dll
public class Point3<T> where T : INumber<T>
Type Parameters
T
- Inheritance
-
Point3<T>
- Inherited Members
- Extension Methods
Constructors
Point3()
public Point3()
Point3(Point3<T>)
public Point3(Point3<T> v)
Parameters
vPoint3<T>
Point3(T, T, T)
public Point3(T x, T y, T z)
Parameters
xTyTzT
Point3(T[])
public Point3(T[] v)
Parameters
vT[]
Point3(T[], int)
public Point3(T[] v, int start)
Parameters
vT[]startint
Fields
Zero
public static readonly Point3<T> Zero
Field Value
- Point3<T>
Properties
X
public T X { get; set; }
Property Value
- T
Y
public T Y { get; set; }
Property Value
- T
Z
public T Z { get; set; }
Property Value
- T
Methods
Clone()
public Point3<T> Clone()
Returns
- Point3<T>
Distance(Point3<T>)
public T Distance(Point3<T> b)
Parameters
bPoint3<T>
Returns
- T
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Move(Vector3<T>, T)
public Point3<T> Move(Vector3<T> axis, T distance)
Parameters
axisVector3<T>distanceT
Returns
- Point3<T>
ToArray()
public T[] ToArray()
Returns
- T[]
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
ToVector()
public Vector3<T> ToVector()
Returns
- Vector3<T>
Operators
operator +(Point3<T>, Vector3<T>)
public static Point3<T> operator +(Point3<T> p, Vector3<T> v)
Parameters
Returns
- Point3<T>
operator ==(Point3<T>, Point3<T>)
public static bool operator ==(Point3<T> a, Point3<T> b)
Parameters
Returns
operator !=(Point3<T>, Point3<T>)
public static bool operator !=(Point3<T> a, Point3<T> b)
Parameters
Returns
operator -(Point3<T>, Point3<T>)
public static Vector3<T> operator -(Point3<T> a, Point3<T> b)
Parameters
Returns
- Vector3<T>