Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Vec2(T)
Inherits
Struct
<
Value
<
Object
Constructors
new
(x :
T
, y :
T
)
Source
new
(x :
T
) :
Vec2
(
T
)
Source
Instance methods
[]
(*args, **options)
Source
[]
(*args, **options, &)
Source
[]=
(*args, **options)
Source
[]=
(*args, **options, &)
Source
data
Source
x
Source
y
Source