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) #

[View source]
def self.new(data : LibGraphene::Point, _transfer : GICrystal::Transfer) #

[View source]
def self.new(x : Float32 | Nil = nil, y : Float32 | Nil = nil) #

[View source]

Class Method Detail

def self.g_type : UInt64 #

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


[View source]
def self.zero : Graphene::Point #

[View source]

Instance Method Detail

def ==(other : self) : Bool #

[View source]
def distance(b : Graphene::Point) : Float32 #

[View source]
def equal(b : Graphene::Point) : Bool #

[View source]
def free : Nil #

[View source]
def init(x : Float32, y : Float32) : Graphene::Point #

[View source]
def init_from_point(src : Graphene::Point) : Graphene::Point #

[View source]
def init_from_vec2(src : Graphene::Vec2) : Graphene::Point #

[View source]
def interpolate(b : Graphene::Point, factor : Float64) : Graphene::Point #

[View source]
def near(b : Graphene::Point, epsilon : Float32) : Bool #

[View source]
def to_vec2 : Graphene::Vec2 #

[View source]
def x(*args, **options) #

[View source]
def x(*args, **options, &) #

[View source]
def x=(arg) #

[View source]
def y(*args, **options) #

[View source]
def y(*args, **options, &) #

[View source]
def y=(arg) #

[View source]