module Graphene

Extended Modules

Defined in:

auto/graphene-1.0/box.cr
auto/graphene-1.0/euler.cr
auto/graphene-1.0/frustum.cr
auto/graphene-1.0/graphene.cr
auto/graphene-1.0/matrix.cr
auto/graphene-1.0/plane.cr
auto/graphene-1.0/point.cr
auto/graphene-1.0/point3_d.cr
auto/graphene-1.0/quad.cr
auto/graphene-1.0/quaternion.cr
auto/graphene-1.0/ray.cr
auto/graphene-1.0/rect.cr
auto/graphene-1.0/simd4_f.cr
auto/graphene-1.0/simd4_x4_f.cr
auto/graphene-1.0/size.cr
auto/graphene-1.0/sphere.cr
auto/graphene-1.0/triangle.cr
auto/graphene-1.0/vec2.cr
auto/graphene-1.0/vec3.cr
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 #

def self.box_infinite : Graphene::Box #

def self.box_minus_one : Graphene::Box #

def self.box_one : Graphene::Box #

def self.box_one_minus_one : Graphene::Box #

def self.box_zero : Graphene::Box #

def self.point3d_zero : Graphene::Point3D #

def self.point_zero : Graphene::Point #

def self.rect_alloc : Graphene::Rect #

def self.rect_zero : Graphene::Rect #

def self.size_zero : Graphene::Size #

def self.vec2_one : Graphene::Vec2 #

def self.vec2_x_axis : Graphene::Vec2 #

def self.vec2_y_axis : Graphene::Vec2 #

def self.vec2_zero : Graphene::Vec2 #

def self.vec3_one : Graphene::Vec3 #

def self.vec3_x_axis : Graphene::Vec3 #

def self.vec3_y_axis : Graphene::Vec3 #

def self.vec3_z_axis : Graphene::Vec3 #

def self.vec3_zero : Graphene::Vec3 #

def self.vec4_one : Graphene::Vec4 #

def self.vec4_w_axis : Graphene::Vec4 #

def self.vec4_x_axis : Graphene::Vec4 #

def self.vec4_y_axis : Graphene::Vec4 #

def self.vec4_z_axis : Graphene::Vec4 #

def self.vec4_zero : Graphene::Vec4 #