Egui::Vec2
Inherits Struct < Value < Object
Constructors
new(x : Float64 = 0.0, y : Float64 = 0.0)
Sourcezero
SourceInstance methods
*(s : Float64) : Vec2
Source*(s : Int32) : Vec2
Source+(other : Vec2) : Vec2
Source-(other : Vec2) : Vec2
Source/(s : Float64) : Vec2
Source==(other : Vec2) : Bool
Sourceinspect(io : IO) : Nil
Appends this struct's name and instance variables names and values to the given IO.
struct Point
def initialize(@x : Int32, @y : Int32)
end
end
p1 = Point.new 1, 2
p1.to_s # "Point(@x=1, @y=2)"
p1.inspect # "Point(@x=1, @y=2)"
length
Sourcemax(other : Vec2) : Vec2
Sourcemin(other : Vec2) : Vec2
Sourcex=(x : Float64)
Sourcey=(y : Float64)
Source