Skip to content

Chart3DPose

StructChartGuruChartGuru
[Serializable]
public struct Chart3DPose

Camera pose for 3D charts, expressed as azimuth (rotation around Y) and inclination (tilt up/down). Swift Charts equivalent: Chart3DPose. Mirrors Chart3DPose(azimuth: .degrees(20), inclination: .degrees(7)).

Lives in the core ChartGuru package so ChartGuru.Chart can hold a pose value directly without a type dependency on the 3D add-on. All interactive rendering of the pose is performed by the ChartGuru.3D add-on.

public float AzimuthDegrees

Rotation around the Y axis, in degrees. Positive values rotate left-to-right.

Returns

System.Single — No return description is available.

public float InclinationDegrees

Tilt up/down, in degrees. Positive values tilt the camera upward.

Returns

System.Single — No return description is available.

public float Distance

Distance from the chart origin to the camera (orbit radius). 0 lets the host choose.

Returns

System.Single — No return description is available.

public static readonly Chart3DPose Default

Default pose: three-quarter oblique, matches Swift Charts Chart3DPose.default.

Returns

ChartGuru.Chart3DPose — No return description is available.

public static readonly Chart3DPose Front

Front elevation (looking straight along +Z).

Returns

ChartGuru.Chart3DPose — No return description is available.

public static readonly Chart3DPose Back

Back elevation.

Returns

ChartGuru.Chart3DPose — No return description is available.

public static readonly Chart3DPose Right

Right-side elevation.

Returns

ChartGuru.Chart3DPose — No return description is available.

public static readonly Chart3DPose Left

Left-side elevation.

Returns

ChartGuru.Chart3DPose — No return description is available.

public static readonly Chart3DPose Top

Top-down plan view.

Returns

ChartGuru.Chart3DPose — No return description is available.

public static readonly Chart3DPose Bottom

Bottom-up plan view.

Returns

ChartGuru.Chart3DPose — No return description is available.

public Chart3DPose(float azimuthDegrees, float inclinationDegrees, float distance = 0)

No description is available for this member.

Parameters

Name Type Description
azimuthDegrees System.Single
inclinationDegrees System.Single
distance System.Single

public static Chart3DPose Lerp(Chart3DPose a, Chart3DPose b, float t)

Linear interpolation between two poses (for animations).

Parameters

Name Type Description
a ChartGuru.Chart3DPose
b ChartGuru.Chart3DPose
t System.Single

Returns

ChartGuru.Chart3DPose — No return description is available.

public Quaternion ToCameraRotation()

Compose a world-space rotation for a camera orbiting the origin.

Returns

UnityEngine.Quaternion — No return description is available.

public Vector3 ToCameraPosition(Vector3 pivot, float radius)

Compute the camera position on the orbit sphere with the given radius and pivot. When ChartGuru.Chart3DPose.Distance is zero, the supplied radius is used.

Parameters

Name Type Description
pivot UnityEngine.Vector3
radius System.Single

Returns

UnityEngine.Vector3 — No return description is available.

public bool Equals(Chart3DPose other)

No description is available for this member.

Parameters

Name Type Description
other ChartGuru.Chart3DPose

Returns

System.Boolean — No return description is available.

public override bool Equals(object obj)

No description is available for this member.

Parameters

Name Type Description
obj System.Object

Returns

System.Boolean — No return description is available.

public override int GetHashCode()

No description is available for this member.

Returns

System.Int32 — No return description is available.

public override string ToString()

No description is available for this member.

Returns

System.String — No return description is available.

public static bool operator ==(Chart3DPose a, Chart3DPose b)

No description is available for this member.

Parameters

Name Type Description
a ChartGuru.Chart3DPose
b ChartGuru.Chart3DPose

Returns

System.Boolean — No return description is available.

public static bool operator !=(Chart3DPose a, Chart3DPose b)

No description is available for this member.

Parameters

Name Type Description
a ChartGuru.Chart3DPose
b ChartGuru.Chart3DPose

Returns

System.Boolean — No return description is available.