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

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

def self.new(normal : Graphene::Vec3? = nil, constant : Float32? = nil) #

Class Method Detail

def self.g_type : UInt64 #

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


Instance Method Detail

def ==(other : self) : Bool #

def constant : Float32 #

def constant(*args, **options) #

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

def constant=(arg) #

def distance(point : Graphene::Point3D) : Float32 #

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

def free : Nil #

def init(normal : Graphene::Vec3?, constant : Float32) : Graphene::Plane #

def init_from_plane(src : Graphene::Plane) : Graphene::Plane #

def init_from_point(normal : Graphene::Vec3, point : Graphene::Point3D) : Graphene::Plane #


def init_from_vec4(src : Graphene::Vec4) : Graphene::Plane #

def negate : Graphene::Plane #

def normal : Graphene::Vec3 #

def normal(*args, **options) #

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

def normal=(arg) #

def normalize : Graphene::Plane #

def transform(matrix : Graphene::Matrix, normal_matrix : Graphene::Matrix?) : Graphene::Plane #