struct Prism::Maths::Angle

Overview

Represents an angle value in the engine.

Defined in:

prism/maths/angle.cr

Constructors

Instance Method Summary

Constructor Detail

def self.from_degrees(degrees) : Angle #

Create an angle from degrees


[View source]
def self.from_radians(radians) : Angle #

Creates an angle from radians


[View source]
def self.new(angle : Float32) #

[View source]

Instance Method Detail

def radians : Float32 #

Returns the angle in radians


[View source]
def to_degrees #

[View source]