Click or drag to resize

SphericalCoordinate Structure

Represents a point on a sphere, and allows to do calculations with it w.r.t to other points on the sphere.

Namespace:  Kit.Algorithms
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public struct SphericalCoordinate : IEquatable<SphericalCoordinate>
Request Example View Source

The SphericalCoordinate type exposes the following members.

Constructors
  NameDescription
Public methodSphericalCoordinate(Vector3, Single, Single, Single, Single, Single, Single, Boolean, Boolean)
Convert a cartesian-coordinate to spherical-coordinates.
Public methodSphericalCoordinate(Single, Single, Single, Single, Single, Single, Single, Single, Single, Boolean, Boolean)
Create a spherical coordinate with the given radius, polar and elevation angles.
Top
Properties
  NameDescription
Public propertyElevation
The horizontal angle of the coordinates (at what longitude do the coordinates lie on a sphere).
Public propertyLoopElevation
Should loop around the elevation angle if it goes out of range? by default.
Public propertyLoopPolar
Should loop around the polar angle if it goes out of range? by default.
Public propertyMaxElevation
Maximum elevation angle. 2π/360° by default.
Public propertyMaxPolar
Maximum polar angle. 2π/360° by default.
Public propertyMaxRadius
Maximum radius.
Public propertyMinElevation
Minimum elevation angle. 0 by default.
Public propertyMinPolar
Minimum polar angle. 0 by default.
Public propertyMinRadius
Minimum radius.
Public propertyPolar
The vertical angle of the coordinates (at what latitude do the coordinates lie on a sphere).
Public propertyRadius
The radius of the coordinates (how much inward or outward are the coordinates from origin).
Public propertyToCartesian
Converts the spherical coordinates to cartesian coordinates.
Top
Methods
Operators
  NameDescription
Public operatorStatic memberEquality
Public operatorStatic memberInequality
Top
See Also