Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- Graphene.box_empty()¶
- Returns:
- Return type:
A degenerate
Graphene.Boxthat can only be expanded.The returned value is owned by Graphene and should not be modified or freed.
Added in version 1.2.
- Graphene.box_infinite()¶
- Returns:
- Return type:
A degenerate
Graphene.Boxthat cannot be expanded.The returned value is owned by Graphene and should not be modified or freed.
Added in version 1.2.
- Graphene.box_minus_one()¶
- Returns:
- Return type:
A
Graphene.Boxwith the minimum vertex set at (-1, -1, -1) and the maximum vertex set at (0, 0, 0).The returned value is owned by Graphene and should not be modified or freed.
Added in version 1.2.
- Graphene.box_one()¶
- Returns:
- Return type:
A
Graphene.Boxwith the minimum vertex set at (0, 0, 0) and the maximum vertex set at (1, 1, 1).The returned value is owned by Graphene and should not be modified or freed.
Added in version 1.2.
- Graphene.box_one_minus_one()¶
- Returns:
- Return type:
A
Graphene.Boxwith the minimum vertex set at (-1, -1, -1) and the maximum vertex set at (1, 1, 1).The returned value is owned by Graphene and should not be modified or freed.
Added in version 1.2.
- Graphene.box_zero()¶
- Returns:
- Return type:
A
Graphene.Boxwith both the minimum and maximum vertices set at (0, 0, 0).The returned value is owned by Graphene and should not be modified or freed.
Added in version 1.2.
- Graphene.point3d_zero()¶
- Returns:
a zero point
- Return type:
Retrieves a constant point with all three coordinates set to 0.
Added in version 1.0.
- Graphene.point_zero()¶
- Returns:
a fixed point
- Return type:
Returns a point fixed at (0, 0).
Added in version 1.0.
- Graphene.rect_alloc()¶
- Returns:
the newly allocated rectangle
- Return type:
Allocates a new
Graphene.Rect.The contents of the returned rectangle are undefined.
Added in version 1.0.
- Graphene.rect_zero()¶
- Returns:
a fixed rectangle
- Return type:
Returns a degenerate rectangle with origin fixed at (0, 0) and a size of 0, 0.
Added in version 1.4.
- Graphene.size_zero()¶
- Returns:
a constant size
- Return type:
A constant pointer to a zero
Graphene.Size, useful for equality checks and interpolations.Added in version 1.0.
- Graphene.vec2_one()¶
- Returns:
the one vector
- Return type:
Retrieves a constant vector with (1, 1) components.
Added in version 1.0.
- Graphene.vec2_x_axis()¶
- Returns:
the X axis vector
- Return type:
Retrieves a constant vector with (1, 0) components.
Added in version 1.0.
- Graphene.vec2_y_axis()¶
- Returns:
the Y axis vector
- Return type:
Retrieves a constant vector with (0, 1) components.
Added in version 1.0.
- Graphene.vec2_zero()¶
- Returns:
the zero vector
- Return type:
Retrieves a constant vector with (0, 0) components.
Added in version 1.0.
- Graphene.vec3_one()¶
- Returns:
a constant vector
- Return type:
Provides a constant pointer to a vector with three components, all sets to 1.
Added in version 1.0.
- Graphene.vec3_x_axis()¶
- Returns:
a constant vector
- Return type:
Provides a constant pointer to a vector with three components with values set to (1, 0, 0).
Added in version 1.0.
- Graphene.vec3_y_axis()¶
- Returns:
a constant vector
- Return type:
Provides a constant pointer to a vector with three components with values set to (0, 1, 0).
Added in version 1.0.
- Graphene.vec3_z_axis()¶
- Returns:
a constant vector
- Return type:
Provides a constant pointer to a vector with three components with values set to (0, 0, 1).
Added in version 1.0.
- Graphene.vec3_zero()¶
- Returns:
a constant vector
- Return type:
Provides a constant pointer to a vector with three components, all sets to 0.
Added in version 1.0.
- Graphene.vec4_one()¶
- Returns:
a constant vector
- Return type:
Retrieves a pointer to a
Graphene.Vec4with all its components set to 1.Added in version 1.0.
- Graphene.vec4_w_axis()¶
- Returns:
a constant vector
- Return type:
Retrieves a pointer to a
Graphene.Vec4with its components set to (0, 0, 0, 1).Added in version 1.0.
- Graphene.vec4_x_axis()¶
- Returns:
a constant vector
- Return type:
Retrieves a pointer to a
Graphene.Vec4with its components set to (1, 0, 0, 0).Added in version 1.0.
- Graphene.vec4_y_axis()¶
- Returns:
a constant vector
- Return type:
Retrieves a pointer to a
Graphene.Vec4with its components set to (0, 1, 0, 0).Added in version 1.0.
- Graphene.vec4_z_axis()¶
- Returns:
a constant vector
- Return type:
Retrieves a pointer to a
Graphene.Vec4with its components set to (0, 0, 1, 0).Added in version 1.0.
- Graphene.vec4_zero()¶
- Returns:
a constant vector
- Return type:
Retrieves a pointer to a
Graphene.Vec4with all its components set to 0.Added in version 1.0.