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

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


def a : Graphene::Vec3 #

def a=(value : Graphene::Vec3) #

def area : Float32 #

def b : Graphene::Vec3 #

def b=(value : Graphene::Vec3) #

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

def bounding_box : Graphene::Box #

def c : Graphene::Vec3 #

def c=(value : Graphene::Vec3) #

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


def vertices : Graphene::Vec3 #