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 #grapheneplanet structure.
float distance(graphene.point3_d.Point3D point)Computes the distance of `p`oint from a #grapheneplanet.
bool equal(graphene.plane.Plane b)Checks whether the two given #grapheneplanet are equal.
float getConstant()Retrieves the distance along the normal vector of the given #grapheneplanet 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 #grapheneplanet.
graphene.plane.Plane init_(graphene.vec3.Vec3 normal, float constant)Initializes the given #grapheneplanet using the given normal vector and constant values.
graphene.plane.Plane initFromPlane(graphene.plane.Plane src)Initializes the given #grapheneplanet using the normal vector and constant of another #grapheneplanet.
graphene.plane.Plane initFromPoint(graphene.vec3.Vec3 normal, graphene.point3_d.Point3D point)Initializes the given #grapheneplanet 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 #grapheneplanet using the 3 provided co-planar points.
graphene.plane.Plane initFromVec4(graphene.vec4.Vec4 src)Initializes the given #grapheneplanet using the components of the given #graphenevec4t vector.
void negate(out graphene.plane.Plane res)Negates the normal vector and constant of a #grapheneplanet, effectively mirroring the plane across the origin.
void normalize(out graphene.plane.Plane res)Normalizes the vector of the given #grapheneplanet, and adjusts the constant accordingly.
void transform(graphene.matrix.Matrix matrix, graphene.matrix.Matrix normalMatrix, out graphene.plane.Plane res)Transforms a #grapheneplanet `p` using the given matrix and normal_matrix.
Constructors
this()Create a `plane.Plane` boxed type.
this(void * ptr, Flag!"Take" take)