struct Graphene::Point

Overview

A point with two coordinates.

Defined in:

lib/gi-crystal/src/auto/graphene-1.0/point.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

def self.new(data : LibGraphene::Point, _transfer : GICrystal::Transfer) #

def self.new(x : Float32? = nil, y : Float32? = nil) #

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


def self.zero : Graphene::Point #

Instance Method Detail

def ==(other : self) : Bool #

def distance(b : Graphene::Point) : Float32 #

def equal(b : Graphene::Point) : Bool #

def free : Nil #

def init(x : Float32, y : Float32) : Graphene::Point #

def init_from_point(src : Graphene::Point) : Graphene::Point #

def init_from_vec2(src : Graphene::Vec2) : Graphene::Point #

def interpolate(b : Graphene::Point, factor : Float64) : Graphene::Point #

def near(b : Graphene::Point, epsilon : Float32) : Bool #

def to_vec2 : Graphene::Vec2 #

def x(*args, **options) #

def x(*args, **options, &) #

def x=(arg) #

def y(*args, **options) #

def y(*args, **options, &) #

def y=(arg) #