Class Vector3D
Represents the coordinates of a 3D point.
Inheritance
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public sealed class Vector3D : ValueType
Constructors
Vector3D(Double, Double, Double)
Initializes a new instance of the Vector3D struct.
Declaration
public Vector3D(double vx, double vy, double vz)
Parameters
Type | Name | Description |
---|---|---|
System.Double | vx | The v x Point |
System.Double | vy | The v y Point |
System.Double | vz | The v z Point |
Vector3D(Point, Double)
Initializes a new instance of the Vector3D struct.
Declaration
public Vector3D(Point points, double vz)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Point | points | The Points |
System.Double | vz | The v z value |
Fields
Empty
The empty Vector3D. All coordinates is zero.
Declaration
public static readonly Vector3D Empty
Field Value
Type |
---|
Vector3D |
Properties
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 object and this instance are the same type and represent the same value; otherwise, false. |
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. |
GetLength()
Gets the length.
Declaration
public double GetLength()
Returns
Type | Description |
---|---|
System.Double | Returns the square root of the current matrix. |
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. |
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. |
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. |