struct Graphene::Triangle

Overview

A triangle.

Defined in:

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

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

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

def self.new(a : Graphene::Vec3? = nil, b : Graphene::Vec3? = nil, c : Graphene::Vec3? = 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 a(*args, **options) #

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

def a=(arg) #

def area : Float32 #

def b(*args, **options) #

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

def b=(arg) #

def barycoords(p : Graphene::Point3D?) : Graphene::Vec2 #

def bounding_box : Graphene::Box #

def c(*args, **options) #

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

def c=(arg) #

def contains_point(p : Graphene::Point3D) : Bool #

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

def free : Nil #

def init_from_float(a : Enumerable(Float32), b : Enumerable(Float32), c : Enumerable(Float32)) : Graphene::Triangle #

def init_from_point3d(a : Graphene::Point3D?, b : Graphene::Point3D?, c : Graphene::Point3D?) : Graphene::Triangle #

def init_from_vec3(a : Graphene::Vec3?, b : Graphene::Vec3?, c : Graphene::Vec3?) : Graphene::Triangle #

def midpoint : Graphene::Point3D #

def normal : Graphene::Vec3 #

def plane : Graphene::Plane #

def points : Graphene::Point3D #


def vertices : Graphene::Vec3 #