class 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(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 #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


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

def to_vec2 : Graphene::Vec2 #

def x : Float32 #

def x=(value : Float32) #

def y : Float32 #

def y=(value : Float32) #