struct Graphene::Plane

Overview

A 2D plane that extends infinitely in a 3D volume.

The contents of the graphene_::plane_t are private, and should not be modified directly.

Defined in:

lib/gi-crystal/src/auto/graphene-1.0/plane.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::Plane, _transfer : GICrystal::Transfer) #

[View source]
def self.new(normal : Graphene::Vec3 | Nil = nil, constant : 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]

Instance Method Detail

def ==(other : self) : Bool #

[View source]
def constant : Float32 #

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

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

[View source]
def constant=(arg) #

[View source]
def distance(point : Graphene::Point3D) : Float32 #

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

[View source]
def free : Nil #

[View source]
def init(normal : Graphene::Vec3 | Nil, constant : Float32) : Graphene::Plane #

[View source]
def init_from_plane(src : Graphene::Plane) : Graphene::Plane #

[View source]
def init_from_point(normal : Graphene::Vec3, point : Graphene::Point3D) : Graphene::Plane #

[View source]

[View source]
def init_from_vec4(src : Graphene::Vec4) : Graphene::Plane #

[View source]
def negate : Graphene::Plane #

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

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

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

[View source]
def normal=(arg) #

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

[View source]
def transform(matrix : Graphene::Matrix, normal_matrix : Graphene::Matrix | Nil) : Graphene::Plane #

[View source]