struct Graphene::Point
- Graphene::Point
- Struct
- Value
- Object
Overview
A point with two coordinates.
Defined in:
lib/gi-crystal/src/auto/graphene-1.0/point.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new(data : LibGraphene::Point, _transfer : GICrystal::Transfer)
- .new(x : Float32? = nil, y : Float32? = nil)
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
- .zero : Graphene::Point
Instance Method Summary
- #==(other : self) : Bool
- #distance(b : Graphene::Point) : Float32
- #equal(b : Graphene::Point) : Bool
- #free : Nil
- #init(x : Float32, y : Float32) : Graphene::Point
- #init_from_point(src : Graphene::Point) : Graphene::Point
- #init_from_vec2(src : Graphene::Vec2) : Graphene::Point
- #interpolate(b : Graphene::Point, factor : Float64) : Graphene::Point
- #near(b : Graphene::Point, epsilon : Float32) : Bool
- #to_vec2 : Graphene::Vec2
- #x(*args, **options)
- #x(*args, **options, &)
- #x=(arg)
- #y(*args, **options)
- #y(*args, **options, &)
- #y=(arg)