public interface Triangle2d extends Polygon2d
Modifier and Type | Method and Description |
---|---|
static Triangle2d |
create(List<? extends Vector2d> points)
Creates a new instance.
|
static Triangle2d |
create(Triangle2d other)
Creates a new instance.
|
static Triangle2d |
create(Vector2d firstPoint,
Vector2d secondPoint,
Vector2d thirdPoint)
Creates a new instance.
|
Vector2d |
getFirstPoint()
Returns the first point of the triangle.
|
Vector2d |
getSecondPoint()
Returns the second point of the triangle.
|
Vector2d |
getThirdPoint()
Returns the third point of the triangle.
|
contains, contains, create, distance, distance, distance, distanceSquared, distanceSquared, distanceSquared, getArea, getBoundingRectangle, getCentroid, getEdgeIterator, getOrientedBoundingRectangle, getPerimeter, getVertexCount, getVertices, intersectEdges, intersects, isConvex, isCounterClockwise, shortestSegmentTo, toArea
forEach, iterator, spliterator
Vector2d getFirstPoint()
Vector2d getSecondPoint()
Vector2d getThirdPoint()
static Triangle2d create(List<? extends Vector2d> points)
create
in interface Polygon2d
points
- list of pointsIllegalArgumentException
- if the list does not contain exactly three
pointsstatic Triangle2d create(Vector2d firstPoint, Vector2d secondPoint, Vector2d thirdPoint)
firstPoint
- the first pointsecondPoint
- the second pointthirdPoint
- the thirdPointIllegalArgumentException
- if the list does not contain exactly three
pointsstatic Triangle2d create(Triangle2d other)
other
- the other triangleCopyright © 2019 Solibri, Inc.. All rights reserved.