Package georegression.struct.shapes
Class Triangle2D_F64
java.lang.Object
georegression.struct.shapes.Triangle2D_F64
- All Implemented Interfaces:
Serializable,MapFormattable
Triangle in 2D space. Described by 3 vertices/points.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTriangle2D_F64(double x0, double y0, double x1, double y1, double x2, double y2) -
Method Summary
Modifier and TypeMethodDescriptioncopy()formatMap(MapPrintFormat format) get(int i) getSide(int i, @Nullable LineSegment2D_F64 side) doublevoidset(int i, double x, double y) voidset(int i, GeoTuple2D_F64<?> p) setTo(double x0, double y0, double x1, double y1, double x2, double y2) setTo(Triangle2D_F64 orig) sideTangent(int i, @Nullable Vector2D_F64 normal) toString()voidzero()Sets the value of all fields to zeroMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ejml.MapFormattable
formatMap
-
Field Details
-
v0
-
v1
-
v2
-
-
Constructor Details
-
Triangle2D_F64
public Triangle2D_F64() -
Triangle2D_F64
public Triangle2D_F64(double x0, double y0, double x1, double y1, double x2, double y2)
-
-
Method Details
-
setTo
-
setTo
-
zero
public void zero()Sets the value of all fields to zero -
get
-
set
public void set(int i, double x, double y) -
set
-
getSide
-
sideTangent
-
maxAbsValue
public double maxAbsValue() -
copy
-
formatMap
- Specified by:
formatMapin interfaceMapFormattable
-
toString
-