struct

PF2d::Vec

Inherits Struct < Value < Object

Constructors

Class methods

from_angle(degrees : Number)
Source
from_radians(radians : Float64)
Source

Instance methods

initialize
Source

Macros

[](*args)

Creates a new Vec with the given args

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