Creates a Plane object according to the given floats a, b, c, d and the plane equation : ax + by + cz + d = 0
a component of the plane
b component of the plane
c component of the plane
d component of the plane
d component of the plane
Normal of the plane (a,b,c)
the plane coordinates as a new array of 4 elements [a, b, c, d].
a new plane copied from the current Plane.
Updates the current Plane from the plane defined by the three given points.
one of the points used to contruct the plane
one of the points used to contruct the plane
one of the points used to contruct the plane
the updated Plane.
Calcualtte the dot product between the point and the plane normal
point to calculate the dot product with
the dot product (float) of the point coordinates and the plane normal.
the string "Plane".
the Plane hash code.
Checks if the plane is facing a given direction
the direction to check if the plane is facing
value the dot product is compared against (returns true if dot <= epsilon)
True is the vector "direction" is the same side than the plane normal.
Normalize the current Plane in place.
the updated Plane.
Calculates the distance to a point
point to calculate distance to
the signed distance (float) from the given point to the Plane.
Creates a plane from an array
the array to create a plane from
a new Plane from the given array.
Creates a plane from an origin point and a normal
origin of the plane to be constructed
normal of the plane to be constructed
a new Plane the normal vector to this plane at the given origin point. Note : the vector "normal" is updated because normalized.
Calculates the distance from a plane and a point
origin of the plane to be constructed
normal of the plane to be constructed
point to calculate distance to
the signed distance between the plane defined by the normal vector at the "origin" point and the given other point.
Represens a plane by the equation ax + by + cz + d = 0