struct Graphene::Triangle
 
  - Graphene::Triangle
 - Struct
 - Value
 - Object
 
Overview
A triangle.
Defined in:
lib/gi-crystal/src/auto/graphene-1.0/triangle.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
 - .new(data : LibGraphene::Triangle, _transfer : GICrystal::Transfer)
 - .new(a : Graphene::Vec3 | Nil = nil, b : Graphene::Vec3 | Nil = nil, c : Graphene::Vec3 | Nil = nil)
 
Class Method Summary
- 
        .g_type : UInt64
        
          
Returns the type id (GType) registered in GLib type system.
 
Instance Method Summary
- #==(other : self) : Bool
 - #a(*args, **options)
 - #a(*args, **options, &)
 - #a=(arg)
 - #area : Float32
 - #b(*args, **options)
 - #b(*args, **options, &)
 - #b=(arg)
 - #barycoords(p : Graphene::Point3D | Nil) : Graphene::Vec2
 - #bounding_box : Graphene::Box
 - #c(*args, **options)
 - #c(*args, **options, &)
 - #c=(arg)
 - #contains_point(p : Graphene::Point3D) : Bool
 - #equal(b : Graphene::Triangle) : Bool
 - #free : Nil
 - #init_from_float(a : Enumerable(Float32), b : Enumerable(Float32), c : Enumerable(Float32)) : Graphene::Triangle
 - #init_from_point3d(a : Graphene::Point3D | Nil, b : Graphene::Point3D | Nil, c : Graphene::Point3D | Nil) : Graphene::Triangle
 - #init_from_vec3(a : Graphene::Vec3 | Nil, b : Graphene::Vec3 | Nil, c : Graphene::Vec3 | Nil) : Graphene::Triangle
 - #midpoint : Graphene::Point3D
 - #normal : Graphene::Vec3
 - #plane : Graphene::Plane
 - #points : Graphene::Point3D
 - #uv(p : Graphene::Point3D | Nil, uv_a : Graphene::Vec2, uv_b : Graphene::Vec2, uv_c : Graphene::Vec2) : Graphene::Vec2
 - #vertices : Graphene::Vec3
 
Constructor Detail
        
        def self.new(a : Graphene::Vec3 | Nil = nil, b : Graphene::Vec3 | Nil = nil, c : Graphene::Vec3 | Nil = nil)
        #
      
      
      Class Method Detail
Instance Method Detail
        
        def init_from_float(a : Enumerable(Float32), b : Enumerable(Float32), c : Enumerable(Float32)) : Graphene::Triangle
        #
      
      
      
        
        def init_from_point3d(a : Graphene::Point3D | Nil, b : Graphene::Point3D | Nil, c : Graphene::Point3D | Nil) : Graphene::Triangle
        #
      
      
      
        
        def init_from_vec3(a : Graphene::Vec3 | Nil, b : Graphene::Vec3 | Nil, c : Graphene::Vec3 | Nil) : Graphene::Triangle
        #
      
      
      
        
        def uv(p : Graphene::Point3D | Nil, uv_a : Graphene::Vec2, uv_b : Graphene::Vec2, uv_c : Graphene::Vec2) : Graphene::Vec2
        #