Companion

object Companion

Functions

Link copied to clipboard
inline fun acos(x: Float): AngleF

Computes the arc cosine of the value x; the returned value is an angle in the range from 0.0 to PI radians.

Link copied to clipboard
inline fun asin(x: Float): AngleF

Computes the arc sine of the value x; the returned value is an angle in the range from -PI/2 to PI/2 radians.

Link copied to clipboard
inline fun atan(x: Float): AngleF

Computes the arc tangent of the value x; the returned value is an angle in the range from -PI/2 to PI/2 radians.

Link copied to clipboard
inline fun atan2(y: Float, x: Float): AngleF

Returns the angle theta of the polar coordinates (r, theta) that correspond to the rectangular coordinates (x, y) by computing the arc tangent of the value y / x; the returned value is an angle in the range from -PI to PI radians.

Link copied to clipboard
inline fun cos(angle: AngleF): Float

Computes the cosine of the given angle.

Link copied to clipboard
inline fun fromDegrees(degrees: Float): AngleF

Creates a new angle using the specified degrees value.

Link copied to clipboard
inline fun fromRadians(radians: Float): AngleF

Creates a new angle using the specified radians value.

Link copied to clipboard
inline fun max(a: AngleF, b: AngleF): AngleF

Returns the greater of two values.

Link copied to clipboard
inline fun min(a: AngleF, b: AngleF): AngleF

Returns the smaller of two values.

Link copied to clipboard
inline fun sin(angle: AngleF): Float

Computes the sine of the given angle.

Link copied to clipboard
inline fun tan(angle: AngleF): Float

Computes the tangent of the given angle.

Properties

Link copied to clipboard

The number of degrees in one radian.

Link copied to clipboard

An angle equal to radians (360°).

Link copied to clipboard

The number of radians in one degree.

Link copied to clipboard

An angle equal to π/2 radians (90°).

Link copied to clipboard
const val SIZE_BITS: Int = 32

The number of bits used to represent an instance of AngleF in a binary form.

Link copied to clipboard
const val SIZE_BYTES: Int = 4

The number of bytes used to represent an instance of AngleF in a binary form.

Link copied to clipboard

An angle equal to π radians (180°).

Link copied to clipboard

An angle equal to 0 radians ().