graphene.plane

Module for [Plane] class

class Plane

Types 1

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.

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
Plane self() nothrowReturns `this`, for use in `with` statements.
graphene.plane.Plane alloc() static nothrowAllocates a new #graphene_plane_t structure.
float distance(graphene.point3_d.Point3D point) nothrowComputes the distance of `p`oint from a #graphene_plane_t.
bool equal(graphene.plane.Plane b) nothrowChecks whether the two given #graphene_plane_t are equal.
float getConstant() nothrowRetrieves the distance along the normal vector of the given #graphene_plane_t from the origin. Returns: the constant value of the plane
void getNormal(out graphene.vec3.Vec3 normal) nothrowRetrieves the normal vector pointing towards the origin of the given #graphene_plane_t.
graphene.plane.Plane init_(graphene.vec3.Vec3 normal, float constant) nothrowInitializes the given #graphene_plane_t using the given normal vector and constant values.
graphene.plane.Plane initFromPlane(graphene.plane.Plane src) nothrowInitializes the given #graphene_plane_t using the normal vector and constant of another #graphene_plane_t.
graphene.plane.Plane initFromPoint(graphene.vec3.Vec3 normal, graphene.point3_d.Point3D point) nothrowInitializes the given #graphene_plane_t using the given normal vector and an arbitrary co-planar point.
graphene.plane.Plane initFromPoints(graphene.point3_d.Point3D a, graphene.point3_d.Point3D b, graphene.point3_d.Point3D c) nothrowInitializes the given #graphene_plane_t using the 3 provided co-planar points.
graphene.plane.Plane initFromVec4(graphene.vec4.Vec4 src) nothrowInitializes the given #graphene_plane_t using the components of the given #graphene_vec4_t vector.
void negate(out graphene.plane.Plane res) nothrowNegates the normal vector and constant of a #graphene_plane_t, effectively mirroring the plane across the origin.
void normalize(out graphene.plane.Plane res) nothrowNormalizes the vector of the given #graphene_plane_t, and adjusts the constant accordingly.
void transform(graphene.matrix.Matrix matrix, graphene.matrix.Matrix normalMatrix, out graphene.plane.Plane res) nothrowTransforms a #graphene_plane_t `p` using the given matrix and normal_matrix.
Constructors
this()Create a `plane.Plane` boxed type.
this(void * ptr, Flag!"Take" take)