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

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

[View source]
def self.new(x : Float32 | Nil = nil, y : Float32 | Nil = nil, z : 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::Point3D #

[View source]

Instance Method Detail

def ==(other : self) : Bool #

[View source]

[View source]
def distance(b : Graphene::Point3D) : Graphene::Vec3 #

[View source]
def dot(b : Graphene::Point3D) : Float32 #

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

[View source]
def free : Nil #

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

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

[View source]
def init_from_vec3(v : Graphene::Vec3) : Graphene::Point3D #

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

[View source]
def length : Float32 #

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

[View source]
def normalize : Graphene::Point3D #

[View source]
def normalize_viewport(viewport : Graphene::Rect, z_near : Float32, z_far : Float32) : Graphene::Point3D #

[View source]
def scale(factor : Float32) : Graphene::Point3D #

[View source]
def to_vec3 : Graphene::Vec3 #

[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]
def z(*args, **options) #

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

[View source]
def z=(arg) #

[View source]