Fork me
BeyondAR
Augmented Reality Framework for Android
 All Classes Functions Variables
com.beyondar.android.util.math.geom.Triangle Class Reference

Represents a geometric triangle. More...

Collaboration diagram for com.beyondar.android.util.math.geom.Triangle:

Public Member Functions

 Triangle (Point3 p1, Point3 p2, Point3 p3)
 Constructs a triangle from 3 points. More...
 
Plane getPlane ()
 Returns the plain that contains this triangle. More...
 
boolean contains (Point3 p)
 Returns if the given point is contained in this triangle. More...
 
Point3[] getPoints ()
 Returns a 3 elements array with the points. More...
 

Detailed Description

Represents a geometric triangle.

Constructor & Destructor Documentation

com.beyondar.android.util.math.geom.Triangle.Triangle ( Point3  p1,
Point3  p2,
Point3  p3 
)

Constructs a triangle from 3 points.

Parameters
p1Point 1
p2Point 2
p3Point 3

Member Function Documentation

boolean com.beyondar.android.util.math.geom.Triangle.contains ( Point3  p)

Returns if the given point is contained in this triangle.

Parameters
pthe point. It must be contained in the same plane as the triangle
Returns
true if the point is contained by the triangle, false otherwise

Here is the caller graph for this function:

Plane com.beyondar.android.util.math.geom.Triangle.getPlane ( )

Returns the plain that contains this triangle.

Returns
the plain that contains this triangle
Point3 [] com.beyondar.android.util.math.geom.Triangle.getPoints ( )

Returns a 3 elements array with the points.

Returns
a 3 elements array with the points

The documentation for this class was generated from the following file: