struct Graphene::Point3D
- Graphene::Point3D
- Struct
- Value
- Object
Overview
A point with three components: X, Y, and Z.
Defined in:
lib/gi-crystal/src/auto/graphene-1.0/point3_d.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new(data : LibGraphene::Point3D, _transfer : GICrystal::Transfer)
- .new(x : Float32? = nil, y : Float32? = nil, z : Float32? = nil)
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
- .zero : Graphene::Point3D
Instance Method Summary
- #==(other : self) : Bool
- #cross(b : Graphene::Point3D) : Graphene::Point3D
- #distance(b : Graphene::Point3D) : Graphene::Vec3
- #dot(b : Graphene::Point3D) : Float32
- #equal(b : Graphene::Point3D) : Bool
- #free : Nil
- #init(x : Float32, y : Float32, z : Float32) : Graphene::Point3D
- #init_from_point(src : Graphene::Point3D) : Graphene::Point3D
- #init_from_vec3(v : Graphene::Vec3) : Graphene::Point3D
- #interpolate(b : Graphene::Point3D, factor : Float64) : Graphene::Point3D
- #length : Float32
- #near(b : Graphene::Point3D, epsilon : Float32) : Bool
- #normalize : Graphene::Point3D
- #normalize_viewport(viewport : Graphene::Rect, z_near : Float32, z_far : Float32) : Graphene::Point3D
- #scale(factor : Float32) : Graphene::Point3D
- #to_vec3 : Graphene::Vec3
- #x(*args, **options)
- #x(*args, **options, &)
- #x=(arg)
- #y(*args, **options)
- #y(*args, **options, &)
- #y=(arg)
- #z(*args, **options)
- #z(*args, **options, &)
- #z=(arg)
Constructor Detail
Class Method Detail
Instance Method Detail
def normalize_viewport(viewport : Graphene::Rect, z_near : Float32, z_far : Float32) : Graphene::Point3D
#