Package org.jzy3d.maths
Class Triangle2d
java.lang.Object
org.jzy3d.maths.Triangle2d
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Triangle2d
equilateral
(float side) Creates the following 2D equilateral triangle with A at (0,0) and C at (side,0).protected static double
equilateralHeight
(double side) Coord3d[]
getSegmentAB
(float z) Coord3d[]
getSegmentAC
(float z) Coord3d[]
getSegmentBA
(float z) Coord3d[]
getSegmentBC
(float z) static Coord3d[]
leftMostFirst
(Coord3d[] segment) static Coord3d[]
leftMostFirst
(Coord3d seg0, Coord3d seg1) mul
(float value) mulSelf
(float value) static Coord3d[]
-
Field Details
-
a
-
b
-
c
-
-
Constructor Details
-
Triangle2d
public Triangle2d() -
Triangle2d
-
-
Method Details
-
getMedianAB
-
getMedianAC
-
getMedianBC
-
getMedianCA
-
getSegmentAB
-
getSegmentBA
-
getSegmentAC
-
getSegmentBC
-
segment
-
leftMostFirst
-
leftMostFirst
-
mul
-
mulSelf
-
getCenter
- Returns:
- the 2D center of this triangle
- See Also:
-
-
invalid @see
3 of https://fr.wikihow.com/calculer-le-centre-de-gravit%C3%A9-d%27un-triangle
-
-
getCenterAB
- Returns:
- the 2D center of this triangle
- See Also:
-
-
invalid @see
2 of https://fr.wikihow.com/calculer-le-centre-de-gravit%C3%A9-d%27un-triangle
-
-
getCenterAC
- Returns:
- the 2D center of this triangle
- See Also:
-
-
invalid @see
2 of https://fr.wikihow.com/calculer-le-centre-de-gravit%C3%A9-d%27un-triangle
-
-
getCenterBC
- Returns:
- the 2D center of this triangle
- See Also:
-
-
invalid @see
2 of https://fr.wikihow.com/calculer-le-centre-de-gravit%C3%A9-d%27un-triangle
-
-
equilateral
Creates the following 2D equilateral triangle with A at (0,0) and C at (side,0). B yields to (side / 2, side * Math.sqrt(3) / 2)B /\ / \ / \ / \ / \ ---------- A C
- Parameters:
side
-
-
equilateralHeight
protected static double equilateralHeight(double side)
-