public interface MTriangle3d extends Triangle3d, MPolygon3d
| Modifier and Type | Method and Description |
|---|---|
static MTriangle3d |
create()
Creates a new instance with all points in the origin.
|
static MTriangle3d |
create(List<? extends Vector3d> points)
Creates a new instance.
|
static MTriangle3d |
create(Triangle3d other)
Creates a new instance.
|
static MTriangle3d |
create(Vector3d firstPoint,
Vector3d secondPoint,
Vector3d thirdPoint)
Creates a new instance.
|
void |
setFirstPoint(Vector3d firstPoint)
Sets the first point of this triangle to the value of the given point.
|
void |
setPoints(Vector3d firstPoint,
Vector3d secondPoint,
Vector3d thirdPoint)
Sets the given points to the triangle.
|
void |
setSecondPoint(Vector3d secondPoint)
Sets the second point of this triangle to the value of the given point.
|
void |
setThirdPoint(Vector3d thirdPoint)
Sets the third point of this triangle to the value of the given point.
|
getBoundingBox, getCrossProduct, getFirstPoint, getSecondPoint, getThirdPoint, intersect, intersect, intersects, intersects, intersectscreate, transform, translatecontains, contains, edgesIntersect, getArea, getCentroid, getEdgeIterator, getMean, getNormal, getVertexCount, getVertices, intersect, intersects, isConvexforEach, iterator, spliteratorvoid setFirstPoint(Vector3d firstPoint)
firstPoint - the value that is set to be the first point of this
trianglevoid setSecondPoint(Vector3d secondPoint)
secondPoint - the value that is set to be the second point of this
trianglevoid setThirdPoint(Vector3d thirdPoint)
thirdPoint - the value that is set to be third point of this trianglevoid setPoints(Vector3d firstPoint, Vector3d secondPoint, Vector3d thirdPoint)
firstPoint - the first pointsecondPoint - the second pointthirdPoint - the third pointstatic MTriangle3d create(List<? extends Vector3d> points)
create in interface MPolygon3dcreate in interface Polygon3dcreate in interface Triangle3dpoints - list of pointsIllegalArgumentException - if the list does not contain exactly three
pointsstatic MTriangle3d create(Vector3d firstPoint, Vector3d secondPoint, Vector3d thirdPoint)
create in interface Triangle3dfirstPoint - the first pointsecondPoint - the second pointthirdPoint - the thirdPointIllegalArgumentException - if the list does not contain exactly three
pointsstatic MTriangle3d create(Triangle3d other)
create in interface Triangle3dother - the other trianglestatic MTriangle3d create()
Copyright © 2019 Solibri, Inc.. All rights reserved.