module Graphene

Extended Modules

Defined in:

lib/gi-crystal/src/auto/graphene-1.0/box.cr
lib/gi-crystal/src/auto/graphene-1.0/euler.cr
lib/gi-crystal/src/auto/graphene-1.0/frustum.cr
lib/gi-crystal/src/auto/graphene-1.0/graphene.cr
lib/gi-crystal/src/auto/graphene-1.0/matrix.cr
lib/gi-crystal/src/auto/graphene-1.0/plane.cr
lib/gi-crystal/src/auto/graphene-1.0/point.cr
lib/gi-crystal/src/auto/graphene-1.0/point3_d.cr
lib/gi-crystal/src/auto/graphene-1.0/quad.cr
lib/gi-crystal/src/auto/graphene-1.0/quaternion.cr
lib/gi-crystal/src/auto/graphene-1.0/ray.cr
lib/gi-crystal/src/auto/graphene-1.0/rect.cr
lib/gi-crystal/src/auto/graphene-1.0/simd4_f.cr
lib/gi-crystal/src/auto/graphene-1.0/simd4_x4_f.cr
lib/gi-crystal/src/auto/graphene-1.0/size.cr
lib/gi-crystal/src/auto/graphene-1.0/sphere.cr
lib/gi-crystal/src/auto/graphene-1.0/triangle.cr
lib/gi-crystal/src/auto/graphene-1.0/vec2.cr
lib/gi-crystal/src/auto/graphene-1.0/vec3.cr
lib/gi-crystal/src/auto/graphene-1.0/vec4.cr

Constant Summary

PI = 3.141593
PI_2 = 1.570796
VEC2_LEN = 2

Evaluates to the number of components of a #graphene_::vec2_t.

This symbol is useful when declaring a C array of floating point values to be used with graphene_::vec2_init_from_float() and graphene_::vec2_to_float(), e.g.

|[ float v[GRAPHENE_VEC2_LEN];

// vec is defined elsewhere graphene_::vec2_to_float (&vec, v);

for (int i = 0; i < GRAPHENE_VEC2_LEN; i++) fprintf (stdout, "component %d: %g\n", i, v[i]); ]|

VEC3_LEN = 3

Evaluates to the number of components of a #graphene_::vec3_t.

This symbol is useful when declaring a C array of floating point values to be used with graphene_::vec3_init_from_float() and graphene_::vec3_to_float(), e.g.

|[ float v[GRAPHENE_VEC3_LEN];

// vec is defined elsewhere graphene_::vec3_to_float (&vec, v);

for (int i = 0; i < GRAPHENE_VEC2_LEN; i++) fprintf (stdout, "component %d: %g\n", i, v[i]); ]|

VEC4_LEN = 4

Evaluates to the number of components of a #graphene_::vec4_t.

This symbol is useful when declaring a C array of floating point values to be used with graphene_::vec4_init_from_float() and graphene_::vec4_to_float(), e.g.

|[ float v[GRAPHENE_VEC4_LEN];

// vec is defined elsewhere graphene_::vec4_to_float (&vec, v);

for (int i = 0; i < GRAPHENE_VEC4_LEN; i++) fprintf (stdout, "component %d: %g\n", i, v[i]); ]|

Class Method Summary

Class Method Detail

def self.box_empty : Graphene::Box #

[View source]
def self.box_infinite : Graphene::Box #

[View source]
def self.box_minus_one : Graphene::Box #

[View source]
def self.box_one : Graphene::Box #

[View source]
def self.box_one_minus_one : Graphene::Box #

[View source]
def self.box_zero : Graphene::Box #

[View source]
def self.point3d_zero : Graphene::Point3D #

[View source]
def self.point_zero : Graphene::Point #

[View source]
def self.rect_alloc : Graphene::Rect #

[View source]
def self.rect_zero : Graphene::Rect #

[View source]
def self.size_zero : Graphene::Size #

[View source]
def self.vec2_one : Graphene::Vec2 #

[View source]
def self.vec2_x_axis : Graphene::Vec2 #

[View source]
def self.vec2_y_axis : Graphene::Vec2 #

[View source]
def self.vec2_zero : Graphene::Vec2 #

[View source]
def self.vec3_one : Graphene::Vec3 #

[View source]
def self.vec3_x_axis : Graphene::Vec3 #

[View source]
def self.vec3_y_axis : Graphene::Vec3 #

[View source]
def self.vec3_z_axis : Graphene::Vec3 #

[View source]
def self.vec3_zero : Graphene::Vec3 #

[View source]
def self.vec4_one : Graphene::Vec4 #

[View source]
def self.vec4_w_axis : Graphene::Vec4 #

[View source]
def self.vec4_x_axis : Graphene::Vec4 #

[View source]
def self.vec4_y_axis : Graphene::Vec4 #

[View source]
def self.vec4_z_axis : Graphene::Vec4 #

[View source]
def self.vec4_zero : Graphene::Vec4 #

[View source]