Angle

smile.modeling.Angle
See theAngle companion object
class Angle(val inDegrees: Double)

Represents an angle with utility methods for trigonometric operations and conversions.

Value parameters

inDegrees

The angle in degrees.

Attributes

Constructor

Creates an angle given in degrees.

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Constructors

def this(inRadiansOrDegrees: Double, isDegrees: Boolean)

Auxiliary constructor for Angle that allows creation from radians or degrees based on a flag.

Auxiliary constructor for Angle that allows creation from radians or degrees based on a flag.

Value parameters

inRadiansOrDegrees

The angle measurement.

isDegrees

Flag indicating if the given measurement is in degrees (true) or radians (false).

Attributes

Concrete methods

infix inline def /(divisor: Double): Angle
override def toString: String

Returns a string representation of this angle in degrees.

Returns a string representation of this angle in degrees.

Attributes

Returns

A string representing the angle in degrees followed by the degree symbol.

Definition Classes
Any

Concrete fields

lazy val cos: Double
val inDegrees: Double
lazy val inRadians: Double

Converts the angle from degrees to radians.

Converts the angle from degrees to radians.

Attributes

Returns

The angle in radians.

lazy val sin: Double