struct Graphene::Point3D

Overview

A point with three components: X, Y, and Z.

Defined in:

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

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

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

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

Class Method Detail

def self.g_type : UInt64 #

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


def self.zero : Graphene::Point3D #

Instance Method Detail

def ==(other : self) : Bool #


def distance(b : Graphene::Point3D) : Graphene::Vec3 #

def dot(b : Graphene::Point3D) : Float32 #

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

def free : Nil #

def init(x : Float32, y : Float32, z : Float32) : Graphene::Point3D #

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

def init_from_vec3(v : Graphene::Vec3) : Graphene::Point3D #

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

def length : Float32 #

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

def normalize : Graphene::Point3D #

def normalize_viewport(viewport : Graphene::Rect, z_near : Float32, z_far : Float32) : Graphene::Point3D #

def scale(factor : Float32) : Graphene::Point3D #

def to_vec3 : Graphene::Vec3 #

def x(*args, **options) #

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

def x=(arg) #

def y(*args, **options) #

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

def y=(arg) #

def z(*args, **options) #

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

def z=(arg) #