DataPoint3D
public struct DataPoint3DExtended data point with Z-axis for 3D charts. Prepared for future 3D support. Size: 48 bytes.
Fields
Section titled “Fields”
public float XX-axis value.
Returns
System.Single
public float YY-axis value.
Returns
System.Single
public float ZZ-axis Value (depth for 3D charts).
Returns
System.Single
public float XEndOptional X-end for range data.
Returns
System.Single
public float YEndOptional Y-end for range data.
Returns
System.Single
public float ZEndOptional Z-end for range data.
Returns
System.Single
SeriesIndex
Section titled “SeriesIndex”public int SeriesIndexSeries index for multi-series charts.
Returns
System.Int32
public int IdUnique identifier for animation stability.
Returns
System.Int32
CategoryIndex
Section titled “CategoryIndex”public int CategoryIndexCategory index for categorical axes.
Returns
System.Int32
CategoryIndex2
Section titled “CategoryIndex2”public int CategoryIndex2Secondary category index for matrix-style data.
Returns
System.Int32
Constructors
Section titled “Constructors”
DataPoint3D(float, float, float)
Section titled “DataPoint3D(float, float, float)”public DataPoint3D(float x, float y, float z)Creates a scalar XYZ point whose end coordinates match its start and whose identity is derived from all three values.
Parameters
| Name | Type |
|---|---|
x |
System.Single |
y |
System.Single |
z |
System.Single |
DataPoint3D(float, float, float, float, float, float)
Section titled “DataPoint3D(float, float, float, float, float, float)”public DataPoint3D(float x, float y, float z, float xEnd, float yEnd, float zEnd)Creates a three-dimensional range point and derives its stable identity from all six boundaries.
Parameters
| Name | Type |
|---|---|
x |
System.Single |
y |
System.Single |
z |
System.Single |
xEnd |
System.Single |
yEnd |
System.Single |
zEnd |
System.Single |
Methods
Section titled “Methods”
ToDataPoint2D()
Section titled “ToDataPoint2D()”public readonly DataPoint ToDataPoint2D()Converts to a 2D data point (projects onto XY plane).
Returns
ChartGuru.DataPoint
ToDataPoint()
Section titled “ToDataPoint()”public readonly DataPoint ToDataPoint()Projects this point into two dimensions, preserving X/Y ranges, series identity, and category metadata while discarding Z values.
Returns
ChartGuru.DataPoint
FromDataPoint(DataPoint, float)
Section titled “FromDataPoint(DataPoint, float)”public static DataPoint3D FromDataPoint(DataPoint point, float z)Lifts a two-dimensional point into 3D at the specified Z coordinate, preserving its ranges and identity metadata.
Parameters
| Name | Type |
|---|---|
point |
ChartGuru.DataPoint |
z |
System.Single |
Returns
ChartGuru.DataPoint3D
Equals(DataPoint3D)
Section titled “Equals(DataPoint3D)”public readonly bool Equals(DataPoint3D other)Parameters
| Name | Type |
|---|---|
other |
ChartGuru.DataPoint3D |
Returns
System.Boolean
Equals(object)
Section titled “Equals(object)”public override readonly bool Equals(object obj)Parameters
| Name | Type |
|---|---|
obj |
System.Object |
Returns
System.Boolean
GetHashCode()
Section titled “GetHashCode()”public override readonly int GetHashCode()Returns
System.Int32
ToString()
Section titled “ToString()”public override readonly string ToString()Returns
System.String
Operators
Section titled “Operators”
operator ==(DataPoint3D, DataPoint3D)
Section titled “operator ==(DataPoint3D, DataPoint3D)”public static bool operator ==(DataPoint3D left, DataPoint3D right)Reports whether both 3D points have the same stable identity hash.
Parameters
| Name | Type |
|---|---|
left |
ChartGuru.DataPoint3D |
right |
ChartGuru.DataPoint3D |
Returns
System.Boolean
operator !=(DataPoint3D, DataPoint3D)
Section titled “operator !=(DataPoint3D, DataPoint3D)”public static bool operator !=(DataPoint3D left, DataPoint3D right)Reports whether the 3D points have different stable identity hashes.
Parameters
| Name | Type |
|---|---|
left |
ChartGuru.DataPoint3D |
right |
ChartGuru.DataPoint3D |
Returns
System.Boolean
Properties
Section titled “Properties”
Position
Section titled “Position”public readonly float3 Position { get; }Gets the 3D position.
Returns
Unity.Mathematics.float3
EndPosition
Section titled “EndPosition”public readonly float3 EndPosition { get; }Gets the 3D end position for ranges.
Returns
Unity.Mathematics.float3