Since 1.2Optionalproperties: Partial<{}>Computes the distance of point from a Graphene.Plane.
the distance of the given Graphene.Point3D from the plane
Checks whether the two given Graphene.Plane are equal.
true if the given planes are equal
Frees the resources allocated by graphene_plane_alloc().
Retrieves the distance along the normal vector of the given Graphene.Plane from the origin.
the constant value of the plane
Retrieves the normal vector pointing towards the origin of the given Graphene.Plane.
Initializes the given Graphene.Plane using the given normal vector
and constant values.
a unit length normal vector defining the plane pointing towards the origin; if unset, we use the X axis by default
the distance from the origin to the plane along the normal vector; the sign determines the half-space occupied by the plane
the initialized plane
Initializes the given Graphene.Plane using the normal vector and constant of another Graphene.Plane.
the initialized plane
Initializes the given Graphene.Plane using the given normal vector and an arbitrary co-planar point.
the initialized plane
Initializes the given Graphene.Plane using the 3 provided co-planar points.
The winding order is counter-clockwise, and determines which direction the normal vector will point.
the initialized plane
Initializes the given Graphene.Plane using the components of the given Graphene.Vec4 vector.
a Graphene.Vec4 containing the normal vector in its first three components, and the distance in its fourth component
the initialized plane
Negates the normal vector and constant of a Graphene.Plane, effectively mirroring the plane across the origin.
Normalizes the vector of the given Graphene.Plane, and adjusts the constant accordingly.
Transforms a Graphene.Plane p using the given matrix
and normal_matrix.
If normal_matrix is null, a transformation matrix for the plane
normal will be computed from matrix. If you are transforming
multiple planes using the same matrix it's recommended to compute
the normal matrix beforehand to avoid incurring in the cost of
recomputing it every time.
Staticalloc
A 2D plane that extends infinitely in a 3D volume.
The contents of the
graphene_plane_tare private, and should not be modified directly.Since
1.2