Skip to content

DataPoint3D

StructChartGuruChartGuru
public struct DataPoint3D

Extended data point with Z-axis for 3D charts. Prepared for future 3D support. Size: 48 bytes.

public float X

X-axis value.

Returns

System.Single

public float Y

Y-axis value.

Returns

System.Single

public float Z

Z-axis Value (depth for 3D charts).

Returns

System.Single

public float XEnd

Optional X-end for range data.

Returns

System.Single

public float YEnd

Optional Y-end for range data.

Returns

System.Single

public float ZEnd

Optional Z-end for range data.

Returns

System.Single

public int SeriesIndex

Series index for multi-series charts.

Returns

System.Int32

public int Id

Unique identifier for animation stability.

Returns

System.Int32

public int CategoryIndex

Category index for categorical axes.

Returns

System.Int32

public int CategoryIndex2

Secondary category index for matrix-style data.

Returns

System.Int32

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

public readonly DataPoint ToDataPoint2D()

Converts to a 2D data point (projects onto XY plane).

Returns

ChartGuru.DataPoint

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

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

public readonly bool Equals(DataPoint3D other)

Parameters

Name Type
other ChartGuru.DataPoint3D

Returns

System.Boolean

public override readonly bool Equals(object obj)

Parameters

Name Type
obj System.Object

Returns

System.Boolean

public override readonly int GetHashCode()

Returns

System.Int32

public override readonly string ToString()

Returns

System.String

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

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

public readonly float3 Position { get; }

Gets the 3D position.

Returns

Unity.Mathematics.float3

public readonly float3 EndPosition { get; }

Gets the 3D end position for ranges.

Returns

Unity.Mathematics.float3