Table of Contents

Class Vector3<T>

Namespace
FellowOakDicom.Imaging.Mathematics
Assembly
fo-dicom.core.dll
public class Vector3<T> where T : INumber<T>

Type Parameters

T
Inheritance
Vector3<T>
Inherited Members
Extension Methods

Constructors

Vector3()

public Vector3()

Vector3(Vector3<T>)

public Vector3(Vector3<T> v)

Parameters

v Vector3<T>

Vector3(T, T, T)

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

Parameters

x T
y T
z T

Vector3(T[])

public Vector3(T[] v)

Parameters

v T[]

Vector3(T[], int)

public Vector3(T[] v, int start)

Parameters

v T[]
start int

Fields

AxisX

public static readonly Vector3<T> AxisX

Field Value

Vector3<T>

AxisY

public static readonly Vector3<T> AxisY

Field Value

Vector3<T>

AxisZ

public static readonly Vector3<T> AxisZ

Field Value

Vector3<T>

Zero

public static readonly Vector3<T> Zero

Field Value

Vector3<T>

Properties

IsZero

public bool IsZero { get; }

Property Value

bool

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 Vector3<T> Clone()

Returns

Vector3<T>

CrossProduct(Vector3<T>)

public Vector3<T> CrossProduct(Vector3<T> b)

Parameters

b Vector3<T>

Returns

Vector3<T>

Distance(Vector3<T>)

public T Distance(Vector3<T> b)

Parameters

b Vector3<T>

Returns

T

DotProduct(Point3<T>)

public T DotProduct(Point3<T> b)

Parameters

b Point3<T>

Returns

T

DotProduct(Vector3<T>)

public T DotProduct(Vector3<T> b)

Parameters

b Vector3<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.

IsPerpendicular(Vector3<T>)

public bool IsPerpendicular(Vector3<T> b)

Parameters

b Vector3<T>

Returns

bool

Length()

public T Length()

Returns

T

Magnitude()

public T Magnitude()

Returns

T

Max(Vector3<T>, Vector3<T>)

public static Vector3<T> Max(Vector3<T> a, Vector3<T> b)

Parameters

a Vector3<T>
b Vector3<T>

Returns

Vector3<T>

Min(Vector3<T>, Vector3<T>)

public static Vector3<T> Min(Vector3<T> a, Vector3<T> b)

Parameters

a Vector3<T>
b Vector3<T>

Returns

Vector3<T>

NearestAxis()

public Vector3<T> NearestAxis()

Returns

Vector3<T>

Normalize()

public Vector3<T> Normalize()

Returns

Vector3<T>

Reflect(Vector3<T>)

public Vector3<T> Reflect(Vector3<T> normal)

Parameters

normal Vector3<T>

Returns

Vector3<T>

Rotate(Vector3<T>, T)

public Vector3<T> Rotate(Vector3<T> axis, T angle)

Parameters

axis Vector3<T>
angle T

Returns

Vector3<T>

ToArray()

public T[] ToArray()

Returns

T[]

ToPoint()

public Point3<T> ToPoint()

Returns

Point3<T>

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Operators

operator +(Vector3<T>, Vector3<T>)

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

Parameters

a Vector3<T>
b Vector3<T>

Returns

Vector3<T>

operator /(Vector3<T>, T)

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

Parameters

a Vector3<T>
b T

Returns

Vector3<T>

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

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

Parameters

a Vector3<T>
b Vector3<T>

Returns

bool

operator >(Vector3<T>, Vector3<T>)

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

Parameters

a Vector3<T>
b Vector3<T>

Returns

bool

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

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

Parameters

a Vector3<T>
b Vector3<T>

Returns

bool

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

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

Parameters

a Vector3<T>
b Vector3<T>

Returns

bool

operator <(Vector3<T>, Vector3<T>)

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

Parameters

a Vector3<T>
b Vector3<T>

Returns

bool

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

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

Parameters

a Vector3<T>
b Vector3<T>

Returns

bool

operator *(Vector3<T>, Point3<T>)

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

Parameters

a Vector3<T>
b Point3<T>

Returns

T

operator *(Vector3<T>, Vector3<T>)

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

Parameters

a Vector3<T>
b Vector3<T>

Returns

T

operator *(Vector3<T>, T)

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

Parameters

a Vector3<T>
b T

Returns

Vector3<T>

operator *(T, Vector3<T>)

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

Parameters

a T
b Vector3<T>

Returns

Vector3<T>

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

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

Parameters

a Vector3<T>
b Vector3<T>

Returns

Vector3<T>

operator -(Vector3<T>)

public static Vector3<T> operator -(Vector3<T> a)

Parameters

a Vector3<T>

Returns

Vector3<T>

operator +(Vector3<T>)

public static Vector3<T> operator +(Vector3<T> a)

Parameters

a Vector3<T>

Returns

Vector3<T>