MathWorx

Class Plane

Object
   |
   +--Plane

class Plane


The Plane class is a very useful definition of a plane. A Plane object consists of a base point and a normal vector, thus implicitly representing the infinitude of a plane.
Defined in Plane.js

Requires:


Field Summary
 point3D base
          The "base" point of the plane.
 point3D norm
          The normal vector of the plane, which wholly defines the Plane along with the base point.
<static>  Plane XY
          The XY-plane.
<static>  Plane XZ
          Same as Plane.ZX
<static>  Plane YX
          Same as Plane.XY
<static>  Plane YZ
          The YZ-plane.
<static>  Plane ZX
          The ZX-plane.
<static>  Plane ZY
          Same as Plane.YZ
 
Constructor Summary
Plane(<point3D> base, <point3D> v1, <point3D> v2)
            The constructor function for a new Plane.
 
Method Summary
 Boolean contains(<Object> obj)
           Tests if a line or point lies in the plane.
 Number distanceFrom(<Object> obj)
           Gets the distance of a plane, line or point from the plane.
 Boolean equalTo(<Plane> plane)
           Tests whether two planes are equal.
 Object intersection(<Object> obj)
           Gets the intersection of a plane with a given Line or Plane.
 Boolean intersects(<Object> obj)
           Tests to see if a line or plane intersects with this plane.
 Boolean isParallel(<Object> obj)
           Tests to see if the plane is parallel to a given Plane or Line.
 Boolean isPerpendicular(plane)
           Tests to see if two planes are perpendicular to each other.
 Object pointClosestTo(<point3D> point)
           Finds the point in the plane closest to the given point.
 Plane rotate(<Number> deg, line)
           Rotates a plane through deg degrees about an arbitrary line.
 String toString()
           Returns a string representation of the Plane.
 Plane translate(<Number> dx, <Number> dy, <Number> dz)
           Translates a plane by dx, dy and dz (normal does not change, only the base)

Field Detail

base

point3D base

norm

point3D norm

XY

<static> Plane XY

XZ

<static> Plane XZ

YX

<static> Plane YX

YZ

<static> Plane YZ

ZX

<static> Plane ZX

ZY

<static> Plane ZY

Constructor Detail

Plane

Plane(<point3D> base, <point3D> v1, <point3D> v2)

Method Detail

contains

Boolean contains(<Object> obj)

distanceFrom

Number distanceFrom(<Object> obj)

equalTo

Boolean equalTo(<Plane> plane)

intersection

Object intersection(<Object> obj)

intersects

Boolean intersects(<Object> obj)

isParallel

Boolean isParallel(<Object> obj)

isPerpendicular

Boolean isPerpendicular(plane)

pointClosestTo

Object pointClosestTo(<point3D> point)

rotate

Plane rotate(<Number> deg, line)

toString

String toString()

translate

Plane translate(<Number> dx, <Number> dy, <Number> dz)

MathWorx

Documentation generated by JSDoc on Tue Aug 5 10:22:22 2008