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)
GType _gType() @property
Plane self()Returns `this`, for use in `with` statements.
graphene.plane.Plane alloc()Allocates a new #graphene_plane_t structure.
float distance(graphene.point3_d.Point3D point)Computes the distance of `p`oint from a #graphene_plane_t.
bool equal(graphene.plane.Plane b)Checks whether the two given #graphene_plane_t are equal.
float getConstant()Retrieves 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)Retrieves the normal vector pointing towards the origin of the given #graphene_plane_t.
graphene.plane.Plane init_(graphene.vec3.Vec3 normal, float constant)Initializes the given #graphene_plane_t using the given normal vector and constant values.
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.
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.
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.
graphene.plane.Plane initFromVec4(graphene.vec4.Vec4 src)Initializes the given #graphene_plane_t using the components of the given #graphene_vec4_t vector.
void negate(out graphene.plane.Plane res)Negates the normal vector and constant of a #graphene_plane_t, effectively mirroring the plane across the origin.
void normalize(out graphene.plane.Plane res)Normalizes 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)Transforms 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)