Geode::Angle
Inherits Comparable < Struct < Value < Object
The Angle struct represents a geometric angle.
Basic arithmetic as well as trigonometric functions can be applied to it.
Constructors
Instance methods
Returns whether or not the given angle lines on a quadrant boundary, i.e. whether the angle's measure is divisible by 1/2pi / 90 degrees.
Returns whether or not the given angle represents a full circle, i.e. whether the angle's measure is divisible by 2pi / 360 degrees.
Returns whether or not the given angle represents a semi-circle, i.e. whether the angle's measure is divisible by pi / 180 degrees.
Returns a new Angle with the measure restricted to the interval [0, 2pi) / [0, 360).
Returns which quadrant the angle lies in. If the angle lies on a quadrant boundary, it returns nil.
Returns the reference angle, i.e. the smallest angle that the terminal side makes with the x-axis.
Returns the Point that lies distance units away from the terminal side centered at center.