Matrix
A structure capable of holding a 4x4 matrix.
The contents of the #graphene_matrix_t structure are private and should never be accessed directly.
Skipped during bindings generation
parameter
v
: Array parameter of type gfloat is not supportedparameter
xx
: xx: Out parameter is not supportedparameter
v
: v: Out parameter is not supported
Constructors
Allocate a new Matrix.
Allocate a new Matrix using the provided AutofreeScope.
Functions
Computes the determinant of the given matrix.
Retrieves the translation component on the X axis from @m.
Retrieves the translation component on the Y axis from @m.
Retrieves the translation component on the Z axis from @m.
Initializes a #graphene_matrix_t from the values of an affine transformation matrix.
Initializes a #graphene_matrix_t using the values of the given matrix.
Initializes a #graphene_matrix_t compatible with #graphene_frustum_t.
Initializes a #graphene_matrix_t with the identity matrix.
Initializes a #graphene_matrix_t so that it positions the "camera" at the given @eye coordinates towards an object at the @center coordinates. The top of the camera is aligned to the direction of the @up vector.
Initializes a #graphene_matrix_t with an orthographic projection.
Initializes a #graphene_matrix_t with a perspective projection.
Initializes @m to represent a rotation of @angle degrees on the axis represented by the @axis vector.
Initializes a #graphene_matrix_t with a translation to the given coordinates.
Linearly interpolates the two given #graphene_matrix_t by interpolating the decomposed transformations separately.
Checks whether a #graphene_matrix_t has a visible back face.
Checks whether the given #graphene_matrix_t is the identity matrix.
Checks whether a matrix is singular.
Applies a perspective of @depth to the matrix.
Projects a #graphene_point_t using the matrix @m.
Projects all corners of a #graphene_rect_t using the given matrix.
Projects a #graphene_rect_t using the given matrix.
Adds a rotation transformation to @m, using the given #graphene_euler_t.
Adds a rotation transformation to @m, using the given #graphene_quaternion_t.
Transforms each corner of a #graphene_rect_t using the given matrix @m.
Transforms the vertices of a #graphene_box_t using the given matrix @m.
Transforms the given #graphene_point_t using the matrix @m.
Transforms the given #graphene_point3d_t using the matrix @m.
Transform a #graphene_ray_t using the given matrix @m.
Transforms each corner of a #graphene_rect_t using the given matrix @m.
Transforms a #graphene_sphere_t using the given matrix @m. The result is the bounding sphere containing the transformed sphere.
Transforms the given #graphene_vec3_t using the matrix @m.
Transforms the given #graphene_vec4_t using the matrix @m.
Unprojects the given @point using the @projection matrix and a @modelview matrix.
Undoes the transformation on the corners of a #graphene_rect_t using the given matrix, within the given axis aligned rectangular @bounds.
Undoes the transformation of a #graphene_point_t using the given matrix, within the given axis aligned rectangular @bounds.