class Graphene::Point3D
- Graphene::Point3D
- Reference
- 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(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
Returns
true
if this reference is the same as other. - #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_unsafe
- #to_vec3 : Graphene::Vec3
- #x : Float32
- #x=(value : Float32)
- #y : Float32
- #y=(value : Float32)
- #z : Float32
- #z=(value : Float32)
Constructor Detail
Class Method Detail
Instance Method Detail
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.
def normalize_viewport(viewport : Graphene::Rect, z_near : Float32, z_far : Float32) : Graphene::Point3D
#