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, intersects
create, transform, translate
contains, contains, edgesIntersect, getArea, getCentroid, getEdgeIterator, getMean, getNormal, getVertexCount, getVertices, intersect, intersects, isConvex
forEach, iterator, spliterator
void 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 MPolygon3d
create
in interface Polygon3d
create
in interface Triangle3d
points
- list of pointsIllegalArgumentException
- if the list does not contain exactly three
pointsstatic MTriangle3d create(Vector3d firstPoint, Vector3d secondPoint, Vector3d thirdPoint)
create
in interface Triangle3d
firstPoint
- the first pointsecondPoint
- the second pointthirdPoint
- the thirdPointIllegalArgumentException
- if the list does not contain exactly three
pointsstatic MTriangle3d create(Triangle3d other)
create
in interface Triangle3d
other
- the other trianglestatic MTriangle3d create()
Copyright © 2019 Solibri, Inc.. All rights reserved.