Struct Vector3D
Represents the coordinates of a 3D point.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Base.dll
Syntax
public struct Vector3D
Constructors
Vector3D(Double, Double, Double)
Initializes a new instance of the Vector3D struct.
Declaration
public Vector3D(double x, double y, double z)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | The x. |
System.Double | y | The y. |
System.Double | z | The z. |
Fields
Empty
The empty Vector3D. All coordinates is zero.
Declaration
public static readonly Vector3D Empty
Field Value
Type |
---|
Vector3D |
Properties
IsEmpty
Gets a value indicating whether this instance is empty.
Declaration
public bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsValid
Gets a value indicating whether this instance is valid.
Declaration
public bool IsValid { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
X
Gets the X coordinate.
Declaration
public double X { get; }
Property Value
Type | Description |
---|---|
System.Double | The X. |
Y
Gets the Y coordinate.
Declaration
public double Y { get; }
Property Value
Type | Description |
---|---|
System.Double | The Y. |
Z
Gets the Z coordinate.
Declaration
public double Z { get; }
Property Value
Type | Description |
---|---|
System.Double | The Z. |
Methods
Equals(Object)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Another object to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | true if obj and this instance are the same type and represent the same value; otherwise, false. |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A 32-bit signed integer that is the hash code for this instance. |
Overrides
GetLength()
Gets the length.
Declaration
public double GetLength()
Returns
Type |
---|
System.Double |
Normalize()
Normalizes this vector.
Declaration
public void Normalize()
ToString()
Overrides System.Object.ToString() method.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The text. |
Overrides
Operators
Addition(Vector3D, Vector3D)
Implements the operator +.
Declaration
public static Vector3D operator +(Vector3D v1, Vector3D v2)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | v1 | The v1. |
Vector3D | v2 | The v2. |
Returns
Type | Description |
---|---|
Vector3D | The result of the operator. |
BitwiseAnd(Vector3D, Vector3D)
Implements the dot product operation.
Declaration
public static double operator &(Vector3D v1, Vector3D v2)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | v1 | The v1. |
Vector3D | v2 | The v2. |
Returns
Type | Description |
---|---|
System.Double | The result of the operator. |
Equality(Vector3D, Vector3D)
Implements the operator ==.
Declaration
public static bool operator ==(Vector3D v1, Vector3D v2)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | v1 | The v1. |
Vector3D | v2 | The v2. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |
Inequality(Vector3D, Vector3D)
Implements the operator !=.
Declaration
public static bool operator !=(Vector3D v1, Vector3D v2)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | v1 | The v1. |
Vector3D | v2 | The v2. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |
LogicalNot(Vector3D)
Implements the operator !.
Declaration
public static Vector3D operator !(Vector3D v1)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | v1 | The v1. |
Returns
Type | Description |
---|---|
Vector3D | The result of the operator. |
Multiply(Vector3D, Vector3D)
Implements the cross product operation.
Declaration
public static Vector3D operator *(Vector3D v1, Vector3D v2)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | v1 | The v1. |
Vector3D | v2 | The v2. |
Returns
Type | Description |
---|---|
Vector3D | The result of the operator. |
Multiply(Vector3D, Double)
Implements the operator *.
Declaration
public static Vector3D operator *(Vector3D v1, double val)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | v1 | The v1. |
System.Double | val | The val. |
Returns
Type | Description |
---|---|
Vector3D | The result of the operator. |
Subtraction(Vector3D, Vector3D)
Implements the operator -.
Declaration
public static Vector3D operator -(Vector3D v1, Vector3D v2)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | v1 | The v1. |
Vector3D | v2 | The v2. |
Returns
Type | Description |
---|---|
Vector3D | The result of the operator. |