Represents a geometric triangle. More...
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... | |
Represents a geometric triangle.
Constructs a triangle from 3 points.
p1 | Point 1 |
p2 | Point 2 |
p3 | Point 3 |
boolean com.beyondar.android.util.math.geom.Triangle.contains | ( | Point3 | p | ) |
Returns if the given point is contained in this triangle.
p | the point. It must be contained in the same plane as the triangle |
Plane com.beyondar.android.util.math.geom.Triangle.getPlane | ( | ) |
Returns the plain that contains this triangle.
Point3 [] com.beyondar.android.util.math.geom.Triangle.getPoints | ( | ) |
Returns a 3 elements array with the points.