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

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

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

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

[View source]
def a=(arg) #

[View source]
def area : Float32 #

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

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

[View source]
def b=(arg) #

[View source]
def barycoords(p : Graphene::Point3D | Nil) : Graphene::Vec2 #

[View source]
def bounding_box : Graphene::Box #

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

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

[View source]
def c=(arg) #

[View source]
def contains_point(p : Graphene::Point3D) : Bool #

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

[View source]
def free : Nil #

[View source]
def init_from_float(a : Enumerable(Float32), b : Enumerable(Float32), c : Enumerable(Float32)) : Graphene::Triangle #

[View source]
def init_from_point3d(a : Graphene::Point3D | Nil, b : Graphene::Point3D | Nil, c : Graphene::Point3D | Nil) : Graphene::Triangle #

[View source]
def init_from_vec3(a : Graphene::Vec3 | Nil, b : Graphene::Vec3 | Nil, c : Graphene::Vec3 | Nil) : Graphene::Triangle #

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

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

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

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

[View source]
def uv(p : Graphene::Point3D | Nil, uv_a : Graphene::Vec2, uv_b : Graphene::Vec2, uv_c : Graphene::Vec2) : Graphene::Vec2 #

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

[View source]