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

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



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

def to_vec3 : Graphene::Vec3 #

def x : Float32 #

def x=(value : Float32) #

def y : Float32 #

def y=(value : Float32) #

def z : Float32 #

def z=(value : Float32) #