Plane

A 2D plane that extends infinitely in a 3D volume.

The contents of the graphene.plane.Plane are private, and should not be modified directly.

Members

Functions

distance
float distance(graphene.point3_d.Point3D point)

Computes the distance of point from a #graphene_plane_t.

equal
bool equal(graphene.plane.Plane b)

Checks whether the two given #graphene_plane_t are equal.

getConstant
float getConstant()

Retrieves the distance along the normal vector of the given #graphene_plane_t from the origin.

getNormal
void getNormal(graphene.vec3.Vec3 normal)

Retrieves the normal vector pointing towards the origin of the given #graphene_plane_t.

initFromPlane
graphene.plane.Plane initFromPlane(graphene.plane.Plane src)

Initializes the given #graphene_plane_t using the normal vector and constant of another #graphene_plane_t.

initFromPoint
graphene.plane.Plane initFromPoint(graphene.vec3.Vec3 normal, graphene.point3_d.Point3D point)

Initializes the given #graphene_plane_t using the given normal vector and an arbitrary co-planar point.

initFromPoints
graphene.plane.Plane initFromPoints(graphene.point3_d.Point3D a, graphene.point3_d.Point3D b, graphene.point3_d.Point3D c)

Initializes the given #graphene_plane_t using the 3 provided co-planar points.

initFromVec4
graphene.plane.Plane initFromVec4(graphene.vec4.Vec4 src)

Initializes the given #graphene_plane_t using the components of the given #graphene_vec4_t vector.

init_
graphene.plane.Plane init_(graphene.vec3.Vec3 normal, float constant)

Initializes the given #graphene_plane_t using the given normal vector and constant values.

negate
void negate(graphene.plane.Plane res)

Negates the normal vector and constant of a #graphene_plane_t, effectively mirroring the plane across the origin.

normalize
void normalize(graphene.plane.Plane res)

Normalizes the vector of the given #graphene_plane_t, and adjusts the constant accordingly.

transform
void transform(graphene.matrix.Matrix matrix, graphene.matrix.Matrix normalMatrix, graphene.plane.Plane res)

Transforms a #graphene_plane_t p using the given matrix and normal_matrix.

Static functions

alloc
graphene.plane.Plane alloc()

Allocates a new #graphene_plane_t structure.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.