T-vec

Gnome::Graphene::T-vec

#------------------------------------------------------------------------------- #--[Class Initialization]------------------------------------------------------- #-------------------------------------------------------------------------------

Class initialization

new

Initialization of a type class is simple and only needed when the standalone functions are used.

method new ( )

#------------------------------------------------------------------------------- #--[Record Structure Documentation]--------------------------------------------- #-------------------------------------------------------------------------------

Record N-Vec4

class N-Vec4:auth<github:MARTIMM>:api<2> is export is repr('CStruct') {
has N-Simd4F $.value;
  }
  • value;

#------------------------------------------------------------------------------- #--[Record Structure Documentation]--------------------------------------------- #-------------------------------------------------------------------------------

Record N-Vec3

class N-Vec3:auth<github:MARTIMM>:api<2> is export is repr('CStruct') {
has N-Simd4F $.value;
  }
  • value;

#------------------------------------------------------------------------------- #--[Record Structure Documentation]--------------------------------------------- #-------------------------------------------------------------------------------

Record N-Vec2

class N-Vec2:auth<github:MARTIMM>:api<2> is export is repr('CStruct') {
has N-Simd4F $.value;
  }
  • value;

#------------------------------------------------------------------------------- #--[Standalone Functions]------------------------------------------------------- #-------------------------------------------------------------------------------

Standalone Functions

#-------------------------------------------------------------------------------

vec2-one

Retrieves a constant vector with (1, 1) components.

method vec2-one (--> CArray[N-Vec2] )

Return value; the one vector.

#-------------------------------------------------------------------------------

vec2-x-axis

Retrieves a constant vector with (1, 0) components.

method vec2-x-axis (--> CArray[N-Vec2] )

Return value; the X axis vector.

#-------------------------------------------------------------------------------

vec2-y-axis

Retrieves a constant vector with (0, 1) components.

method vec2-y-axis (--> CArray[N-Vec2] )

Return value; the Y axis vector.

#-------------------------------------------------------------------------------

vec2-zero

Retrieves a constant vector with (0, 0) components.

method vec2-zero (--> CArray[N-Vec2] )

Return value; the zero vector.

#-------------------------------------------------------------------------------

vec3-one

Provides a constant pointer to a vector with three components, all sets to 1.

method vec3-one (--> CArray[N-Vec3] )

Return value; a constant vector.

#-------------------------------------------------------------------------------

vec3-x-axis

Provides a constant pointer to a vector with three components with values set to (1, 0, 0).

method vec3-x-axis (--> CArray[N-Vec3] )

Return value; a constant vector.

#-------------------------------------------------------------------------------

vec3-y-axis

Provides a constant pointer to a vector with three components with values set to (0, 1, 0).

method vec3-y-axis (--> CArray[N-Vec3] )

Return value; a constant vector.

#-------------------------------------------------------------------------------

vec3-z-axis

Provides a constant pointer to a vector with three components with values set to (0, 0, 1).

method vec3-z-axis (--> CArray[N-Vec3] )

Return value; a constant vector.

#-------------------------------------------------------------------------------

vec3-zero

Provides a constant pointer to a vector with three components, all sets to 0.

method vec3-zero (--> CArray[N-Vec3] )

Return value; a constant vector.

#-------------------------------------------------------------------------------

vec4-one

Retrieves a pointer to a graphene_vec4_t with all its components set to 1.

method vec4-one (--> CArray[N-Vec4] )

Return value; a constant vector.

#-------------------------------------------------------------------------------

vec4-w-axis

Retrieves a pointer to a graphene_vec4_t with its components set to (0, 0, 0, 1).

method vec4-w-axis (--> CArray[N-Vec4] )

Return value; a constant vector.

#-------------------------------------------------------------------------------

vec4-x-axis

Retrieves a pointer to a graphene_vec4_t with its components set to (1, 0, 0, 0).

method vec4-x-axis (--> CArray[N-Vec4] )

Return value; a constant vector.

#-------------------------------------------------------------------------------

vec4-y-axis

Retrieves a pointer to a graphene_vec4_t with its components set to (0, 1, 0, 0).

method vec4-y-axis (--> CArray[N-Vec4] )

Return value; a constant vector.

#-------------------------------------------------------------------------------

vec4-z-axis

Retrieves a pointer to a graphene_vec4_t with its components set to (0, 0, 1, 0).

method vec4-z-axis (--> CArray[N-Vec4] )

Return value; a constant vector.

#-------------------------------------------------------------------------------

vec4-zero

Retrieves a pointer to a graphene_vec4_t with all its components set to 0.

method vec4-zero (--> CArray[N-Vec4] )

Return value; a constant vector.

Gnome::Graphene v0.1.11

Graphene is a library of data types commonly used to implement 2D-in-3D or full 3D canvases

Authors

  • Marcel Timmerman

License

Artistic-2.0

Dependencies

Gnome::GObject:api<2>Gnome::Glib:api<2>Gnome::N:api<2>

Test Dependencies

Provides

  • Gnome::Graphene::N-Box
  • Gnome::Graphene::N-Euler
  • Gnome::Graphene::N-Frustum
  • Gnome::Graphene::N-Matrix
  • Gnome::Graphene::N-Plane
  • Gnome::Graphene::N-Point
  • Gnome::Graphene::N-Point3D
  • Gnome::Graphene::N-Quad
  • Gnome::Graphene::N-Quaternion
  • Gnome::Graphene::N-Ray
  • Gnome::Graphene::N-Rect
  • Gnome::Graphene::N-Size
  • Gnome::Graphene::N-Sphere
  • Gnome::Graphene::N-Triangle
  • Gnome::Graphene::N-Vec2
  • Gnome::Graphene::N-Vec3
  • Gnome::Graphene::N-Vec4
  • Gnome::Graphene::T-box
  • Gnome::Graphene::T-config
  • Gnome::Graphene::T-euler
  • Gnome::Graphene::T-frustum
  • Gnome::Graphene::T-matrix
  • Gnome::Graphene::T-plane
  • Gnome::Graphene::T-point
  • Gnome::Graphene::T-point3d
  • Gnome::Graphene::T-quad
  • Gnome::Graphene::T-quaternion
  • Gnome::Graphene::T-ray
  • Gnome::Graphene::T-rect
  • Gnome::Graphene::T-size
  • Gnome::Graphene::T-sphere
  • Gnome::Graphene::T-triangle
  • Gnome::Graphene::T-vec

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.