-
Notifications
You must be signed in to change notification settings - Fork 0
class_plane
####Category: Built-In Types
Plane in hessian form.
- Vector3 center ( )
- float distance_to ( Vector3 point )
- Vector3 get_any_point ( )
- bool has_point ( Vector3 point, float epsilon=0.00001 )
- Vector3 intersect_3 ( Plane b, Plane c )
- Vector3 intersects_ray ( Vector3 from, Vector3 dir )
- Vector3 intersects_segment ( Vector3 begin, Vector3 end )
- bool is_point_over ( Vector3 point )
- Plane normalized ( )
- Vector3 project ( Vector3 point )
- void Plane ( float a, float b, float c, float d )
- void Plane ( Vector3 v1, Vector3 v2, Vector3 v3 )
- void Plane ( Vector3 normal, float d )
Plane represents a normalized plane equation. Basically, "normal" is the normal of the plane (a,b,c normalized), and "d" is the distance from the origin to the plane (in the direction of "normal"). "Over" or "Above" the plane is considered the side of the plane towards where the normal is pointing.
Returns true if "p" is inside the plane (by a very minimum treshold).
Returns true if this plane intersects with planes "a" and "b". The resulting intersectin is placed in "r".
Returns true if ray consiting of position "p" and direction normal "d" intersects this plane. If true, the result is placed in "r".
Returns true if segment from position "sa" to position "sb" intersects this plane. If true, the result is placed in "r".
Returns true if "p" is located above the plane.
- Plane normalized ( )
Returns a copy of the plane, normalized.
Returns the orthogonal projection of point "p" into a point in the plane.