Class Vector3D
Inheritance
System.Object
Vector3D
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: fo-dicom.core.dll
Syntax
Constructors
Vector3D()
Declaration
Vector3D(Vector3D)
Declaration
public Vector3D(Vector3D v)
Parameters
Vector3D(Double, Double, Double)
Declaration
public Vector3D(double x, double y, double z)
Parameters
Type |
Name |
Description |
System.Double |
x |
|
System.Double |
y |
|
System.Double |
z |
|
Vector3D(Double[])
Declaration
public Vector3D(double[] v)
Parameters
Type |
Name |
Description |
System.Double[] |
v |
|
Vector3D(Double[], Int32)
Declaration
public Vector3D(double[] v, int start)
Parameters
Type |
Name |
Description |
System.Double[] |
v |
|
System.Int32 |
start |
|
Vector3D(Int32, Int32, Int32)
Declaration
public Vector3D(int x, int y, int z)
Parameters
Type |
Name |
Description |
System.Int32 |
x |
|
System.Int32 |
y |
|
System.Int32 |
z |
|
Vector3D(Int32[])
Declaration
Parameters
Type |
Name |
Description |
System.Int32[] |
v |
|
Vector3D(Int32[], Int32)
Declaration
public Vector3D(int[] v, int start)
Parameters
Type |
Name |
Description |
System.Int32[] |
v |
|
System.Int32 |
start |
|
Vector3D(Single, Single, Single)
Declaration
public Vector3D(float x, float y, float z)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
System.Single |
y |
|
System.Single |
z |
|
Vector3D(Single[])
Declaration
public Vector3D(float[] v)
Parameters
Type |
Name |
Description |
System.Single[] |
v |
|
Vector3D(Single[], Int32)
Declaration
public Vector3D(float[] v, int start)
Parameters
Type |
Name |
Description |
System.Single[] |
v |
|
System.Int32 |
start |
|
Fields
AxisX
Declaration
public static readonly Vector3D AxisX
Field Value
AxisY
Declaration
public static readonly Vector3D AxisY
Field Value
AxisZ
Declaration
public static readonly Vector3D AxisZ
Field Value
Epsilon
Declaration
public static readonly Vector3D Epsilon
Field Value
MaxValue
Declaration
public static readonly Vector3D MaxValue
Field Value
MinValue
Declaration
public static readonly Vector3D MinValue
Field Value
Zero
Declaration
public static readonly Vector3D Zero
Field Value
Properties
IsZero
Declaration
public bool IsZero { get; }
Property Value
Type |
Description |
System.Boolean |
|
X
Declaration
public double X { get; set; }
Property Value
Type |
Description |
System.Double |
|
Y
Declaration
public double Y { get; set; }
Property Value
Type |
Description |
System.Double |
|
Z
Declaration
public double Z { get; set; }
Property Value
Type |
Description |
System.Double |
|
Methods
Clone()
Declaration
Returns
CrossProduct(Vector3D)
Declaration
public Vector3D CrossProduct(Vector3D b)
Parameters
Returns
Distance(Vector3D)
Declaration
public double Distance(Vector3D b)
Parameters
Returns
Type |
Description |
System.Double |
|
DotProduct(Point3D)
Declaration
public double DotProduct(Point3D b)
Parameters
Returns
Type |
Description |
System.Double |
|
DotProduct(Vector3D)
Declaration
public double DotProduct(Vector3D b)
Parameters
Returns
Type |
Description |
System.Double |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
IsPerpendicular(Vector3D)
Declaration
public bool IsPerpendicular(Vector3D b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Length()
Declaration
Returns
Type |
Description |
System.Double |
|
Magnitude()
Declaration
public double Magnitude()
Returns
Type |
Description |
System.Double |
|
Max(Vector3D, Vector3D)
Declaration
public static Vector3D Max(Vector3D a, Vector3D b)
Parameters
Returns
Min(Vector3D, Vector3D)
Declaration
public static Vector3D Min(Vector3D a, Vector3D b)
Parameters
Returns
NearestAxis()
Declaration
public Vector3D NearestAxis()
Returns
Normalize()
Declaration
public Vector3D Normalize()
Returns
Reflect(Vector3D)
Declaration
public Vector3D Reflect(Vector3D normal)
Parameters
Returns
Rotate(Vector3D, Double)
Declaration
public Vector3D Rotate(Vector3D axis, double angle)
Parameters
Type |
Name |
Description |
Vector3D |
axis |
|
System.Double |
angle |
|
Returns
Round()
Declaration
Returns
ToArray()
Declaration
public double[] ToArray()
Returns
Type |
Description |
System.Double[] |
|
ToPoint()
Declaration
Returns
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Operators
Addition(Vector3D, Vector3D)
Declaration
public static Vector3D operator +(Vector3D a, Vector3D b)
Parameters
Returns
Division(Vector3D, Double)
Declaration
public static Vector3D operator /(Vector3D a, double b)
Parameters
Type |
Name |
Description |
Vector3D |
a |
|
System.Double |
b |
|
Returns
Division(Vector3D, Int32)
Declaration
public static Vector3D operator /(Vector3D a, int b)
Parameters
Type |
Name |
Description |
Vector3D |
a |
|
System.Int32 |
b |
|
Returns
Division(Vector3D, Single)
Declaration
public static Vector3D operator /(Vector3D a, float b)
Parameters
Type |
Name |
Description |
Vector3D |
a |
|
System.Single |
b |
|
Returns
Equality(Vector3D, Vector3D)
Declaration
public static bool operator ==(Vector3D a, Vector3D b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
GreaterThan(Vector3D, Vector3D)
Declaration
public static bool operator>(Vector3D a, Vector3D b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
GreaterThanOrEqual(Vector3D, Vector3D)
Declaration
public static bool operator >=(Vector3D a, Vector3D b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(Vector3D, Vector3D)
Declaration
public static bool operator !=(Vector3D a, Vector3D b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
LessThan(Vector3D, Vector3D)
Declaration
public static bool operator <(Vector3D a, Vector3D b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
LessThanOrEqual(Vector3D, Vector3D)
Declaration
public static bool operator <=(Vector3D a, Vector3D b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Multiply(Vector3D, Point3D)
Declaration
public static double operator *(Vector3D a, Point3D b)
Parameters
Returns
Type |
Description |
System.Double |
|
Multiply(Vector3D, Vector3D)
Declaration
public static double operator *(Vector3D a, Vector3D b)
Parameters
Returns
Type |
Description |
System.Double |
|
Multiply(Vector3D, Double)
Declaration
public static Vector3D operator *(Vector3D a, double b)
Parameters
Type |
Name |
Description |
Vector3D |
a |
|
System.Double |
b |
|
Returns
Multiply(Vector3D, Int32)
Declaration
public static Vector3D operator *(Vector3D a, int b)
Parameters
Type |
Name |
Description |
Vector3D |
a |
|
System.Int32 |
b |
|
Returns
Multiply(Vector3D, Single)
Declaration
public static Vector3D operator *(Vector3D a, float b)
Parameters
Type |
Name |
Description |
Vector3D |
a |
|
System.Single |
b |
|
Returns
Multiply(Double, Vector3D)
Declaration
public static Vector3D operator *(double a, Vector3D b)
Parameters
Type |
Name |
Description |
System.Double |
a |
|
Vector3D |
b |
|
Returns
Multiply(Int32, Vector3D)
Declaration
public static Vector3D operator *(int a, Vector3D b)
Parameters
Type |
Name |
Description |
System.Int32 |
a |
|
Vector3D |
b |
|
Returns
Multiply(Single, Vector3D)
Declaration
public static Vector3D operator *(float a, Vector3D b)
Parameters
Type |
Name |
Description |
System.Single |
a |
|
Vector3D |
b |
|
Returns
Subtraction(Vector3D, Vector3D)
Declaration
public static Vector3D operator -(Vector3D a, Vector3D b)
Parameters
Returns
UnaryNegation(Vector3D)
Declaration
public static Vector3D operator -(Vector3D a)
Parameters
Returns
UnaryPlus(Vector3D)
Declaration
public static Vector3D operator +(Vector3D a)
Parameters
Returns
Extension Methods