Table of Contents

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

v Point3<T>

Point3(T, T, T)

public Point3(T x, T y, T z)

Parameters

x T
y T
z T

Point3(T[])

public Point3(T[] v)

Parameters

v T[]

Point3(T[], int)

public Point3(T[] v, int start)

Parameters

v T[]
start int

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

b Point3<T>

Returns

T

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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

axis Vector3<T>
distance T

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

p Point3<T>
v Vector3<T>

Returns

Point3<T>

operator ==(Point3<T>, Point3<T>)

public static bool operator ==(Point3<T> a, Point3<T> b)

Parameters

a Point3<T>
b Point3<T>

Returns

bool

operator !=(Point3<T>, Point3<T>)

public static bool operator !=(Point3<T> a, Point3<T> b)

Parameters

a Point3<T>
b Point3<T>

Returns

bool

operator -(Point3<T>, Point3<T>)

public static Vector3<T> operator -(Point3<T> a, Point3<T> b)

Parameters

a Point3<T>
b Point3<T>

Returns

Vector3<T>