struct Graphene::Vec3
- Graphene::Vec3
- Struct
- Value
- Object
Overview
A structure capable of holding a vector with three dimensions: x, y, and z.
The contents of the #graphene_::vec3_t structure are private and should never be accessed directly.
Defined in:
lib/gi-crystal/src/auto/graphene-1.0/vec3.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new(data : LibGraphene::Vec3, _transfer : GICrystal::Transfer)
- .new(value : Graphene::Simd4F? = nil)
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
- .one : Graphene::Vec3
- .x_axis : Graphene::Vec3
- .y_axis : Graphene::Vec3
- .z_axis : Graphene::Vec3
- .zero : Graphene::Vec3
Instance Method Summary
- #==(other : self) : Bool
- #add(b : Graphene::Vec3) : Graphene::Vec3
- #cross(b : Graphene::Vec3) : Graphene::Vec3
- #divide(b : Graphene::Vec3) : Graphene::Vec3
- #dot(b : Graphene::Vec3) : Float32
- #equal(v2 : Graphene::Vec3) : Bool
- #free : Nil
- #init(x : Float32, y : Float32, z : Float32) : Graphene::Vec3
- #init_from_float(src : Enumerable(Float32)) : Graphene::Vec3
- #init_from_float(*src : Float32)
- #init_from_vec3(src : Graphene::Vec3) : Graphene::Vec3
- #interpolate(v2 : Graphene::Vec3, factor : Float64) : Graphene::Vec3
- #length : Float32
- #max(b : Graphene::Vec3) : Graphene::Vec3
- #min(b : Graphene::Vec3) : Graphene::Vec3
- #multiply(b : Graphene::Vec3) : Graphene::Vec3
- #near(v2 : Graphene::Vec3, epsilon : Float32) : Bool
- #negate : Graphene::Vec3
- #normalize : Graphene::Vec3
- #scale(factor : Float32) : Graphene::Vec3
- #subtract(b : Graphene::Vec3) : Graphene::Vec3
- #to_float(dest : Enumerable(Float32)) : Nil
- #to_float(*dest : Float32)
- #value(*args, **options)
- #value(*args, **options, &)
- #value=(arg)
- #x : Float32
- #xy : Graphene::Vec2
- #xy0 : Graphene::Vec3
- #xyz0 : Graphene::Vec4
- #xyz1 : Graphene::Vec4
- #xyzw(w : Float32) : Graphene::Vec4
- #y : Float32
- #z : Float32