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, b : Graphene::Vec3? = nil, c : Graphene::Vec3? = 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?) : 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?, b : Graphene::Point3D?, c : Graphene::Point3D?) : Graphene::Triangle
- #init_from_vec3(a : Graphene::Vec3?, b : Graphene::Vec3?, c : Graphene::Vec3?) : Graphene::Triangle
- #midpoint : Graphene::Point3D
- #normal : Graphene::Vec3
- #plane : Graphene::Plane
- #points : Graphene::Point3D
- #uv(p : Graphene::Point3D?, uv_a : Graphene::Vec2, uv_b : Graphene::Vec2, uv_c : Graphene::Vec2) : Graphene::Vec2
- #vertices : Graphene::Vec3
Constructor Detail
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?, b : Graphene::Point3D?, c : Graphene::Point3D?) : Graphene::Triangle
#
def init_from_vec3(a : Graphene::Vec3?, b : Graphene::Vec3?, c : Graphene::Vec3?) : Graphene::Triangle
#
def uv(p : Graphene::Point3D?, uv_a : Graphene::Vec2, uv_b : Graphene::Vec2, uv_c : Graphene::Vec2) : Graphene::Vec2
#