Table of Contents

Class SphericalCartesian3D

Namespace
LightningChartLib.WinForms.Charting.CoordinateConverters
Assembly
LightningChart.WinForms.Charting.NET4.dll

Spherical to 3D cartesian coordinates converter class. Assumes spherical data point to be defined in azimuth / elevation system coordinates. For elevation, the XZ plane is the reference plane. (e.g. equatorial plane). Elevation is angle measured from that plane. To apply values from polar inclination system, use formula Elevation = 90 - Inclination.

public static class SphericalCartesian3D
Inheritance
SphericalCartesian3D
Inherited Members

Remarks

Assumes View3D.Dimensions to be equal (cubic).

Methods

ToCartesian(SphericalPoint)

Convert spherical point to cartesian XYZ point.

public static PointDouble3D ToCartesian(this SphericalPoint sphericalPoint)

Parameters

sphericalPoint SphericalPoint

Spherical point.

Returns

PointDouble3D

Cartesian point.

ToCartesian(SphericalPoint[,])

Convert spherical point array to a surface point array. Fills X, Y and Z fields of SurfacePoints

public static SurfacePoint[,] ToCartesian(this SphericalPoint[,] sphericalPoints)

Parameters

sphericalPoints SphericalPoint[,]

Spherical points

Returns

SurfacePoint[,]

Surface point array

ToCartesian(SphericalPoint[])

Convert spherical point array to a series point array. Fills X, Y and Z fields of SeriesPoints3D.

public static SeriesPoint3D[] ToCartesian(this SphericalPoint[] sphericalPoints)

Parameters

sphericalPoints SphericalPoint[]

Spherical points.

Returns

SeriesPoint3D[]

Series point array.

ToSpherical(PointDouble3D)

Convert a cartesian XYZ point into spherical point.

public static SphericalPoint ToSpherical(this PointDouble3D xyz)

Parameters

xyz PointDouble3D

Cartesian point.

Returns

SphericalPoint

Spherical point.