Polar2d

data class Polar2d(val theta: Double, val radius: Double)

Represents a coordinate in the polar coordinate system.

theta is the relative angle from 0 in radians on the unit circle. (A theta of 0 points to the right, not up.) radius is the distance from the center, used to represent strength or magnitude.

For a alternative to this that uses the cartesian coordinate system (x, y), see Vector2d.

Constructors

Link copied to clipboard
constructor(theta: Double, radius: Double)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun toCartesian(): Vector2d

Returns the cartesian form of these polar coordinates.