abstract struct PF2d::Vec

Direct Known Subclasses

Defined in:

pf2d/vec.cr

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.from_angle(degrees : Number) #

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

[View source]

Macro Detail

macro [](*args) #

Creates a new Vec with the given args

PF2d::Vec[1, 2] # => PF2d::Vec2(Int32)(@x=1, @y=2)

[View source]

Instance Method Detail

def initialize #

[View source]