|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.ucm.look.ar.math.geom.Triangle
public class Triangle
Represents a geometric triangle
Constructor Summary | |
---|---|
Triangle(Point3 p1,
Point3 p2,
Point3 p3)
Constructs a triangle from 3 points |
Method Summary | |
---|---|
boolean |
contains(Point3 p)
Returns if the given point is contained in this triangle. |
Plane |
getPlane()
Returns the plain that contains this triangle |
Point3[] |
getPoints()
Returns a 3 elements array with the points |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Triangle(Point3 p1, Point3 p2, Point3 p3)
p1
- Point 1p2
- Point 2p3
- Point 3Method Detail |
---|
public boolean contains(Point3 p)
p
- the point. It must be contained in the same plane as the
triangle
public Plane getPlane()
public Point3[] getPoints()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |