Skip to content
reduz edited this page Feb 23, 2014 · 11 revisions

Plane

Category: Built-In Types\

Brief Description

Plane in hessian form.

Member Functions

Member Variables

Description

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.

Member Function Description

== has_point ==

  • bool #has_point( Vector3 point, real epsilon=0.00001 ) \ Returns true if "p" is inside the plane (by a very minimum treshold). == intersect_3 ==
  • Vector3 #intersect_3( Plane b, Plane c ) \ Returns true if this plane intersects with planes "a" and "b". The resulting intersectin is placed in "r". == intersects_ray ==
  • Vector3 #intersects_ray( Vector3 from, Vector3 dir ) \ Returns true if ray consiting of position "p" and direction normal "d" intersects this plane. If true, the result is placed in "r". == intersects_segment ==
  • Vector3 #intersects_segment( Vector3 begin, Vector3 end ) \ Returns true if segment from position "sa" to position "sb" intersects this plane. If true, the result is placed in "r". == is_point_over ==
  • bool #is_point_over( Vector3 point ) \ Returns true if "p" is located above the plane. == normalized ==
  • Plane #normalized(****) \ Returns a copy of the plane, normalized. == project ==
  • Vector3 #project( Vector3 point ) \ Returns the orthogonal projection of point "p" into a point in the plane.
Clone this wiki locally