JavaCAD
|
Public Member Functions | |
Hexagon (double flatToFlatDIstance, double height) | |
List< Polygon > | toPolygons () |
double | getFlatToFlatDistance () |
double | getPointToPointDistance () |
PropertyStorage | getProperties () |
![]() | |
CSG | toCSG () |
Private Attributes | |
double | flatToFlatDistance =1 |
double | height =1 |
final PropertyStorage | properties = new PropertyStorage() |
double | nunRad |
CSG | head |
Definition at line 13 of file Hexagon.java.
eu.mihosoft.vrl.v3d.Hexagon.Hexagon | ( | double | flatToFlatDIstance, |
double | height | ||
) |
Constructor. Creates a new Hexagon that would fir a wrench of size flatToFlatDIstance radius
.
flatToFlatDIstance | the size of wrench that this nut would fit |
Definition at line 36 of file Hexagon.java.
References eu.mihosoft.vrl.v3d.Hexagon.height, and eu.mihosoft.vrl.v3d.Hexagon.nunRad.
double eu.mihosoft.vrl.v3d.Hexagon.getFlatToFlatDistance | ( | ) |
Gets the flatToFlatDistance.
Definition at line 60 of file Hexagon.java.
References eu.mihosoft.vrl.v3d.Hexagon.flatToFlatDistance.
double eu.mihosoft.vrl.v3d.Hexagon.getPointToPointDistance | ( | ) |
Gets the diameter of the outscribed circle. This is the Point To Point Distance
Definition at line 70 of file Hexagon.java.
References eu.mihosoft.vrl.v3d.Hexagon.nunRad.
PropertyStorage eu.mihosoft.vrl.v3d.Hexagon.getProperties | ( | ) |
Returns the property storage of this primitive.
Reimplemented from eu.mihosoft.vrl.v3d.Primitive.
Definition at line 78 of file Hexagon.java.
References eu.mihosoft.vrl.v3d.Hexagon.properties.
List<Polygon> eu.mihosoft.vrl.v3d.Hexagon.toPolygons | ( | ) |
Returns the polygons that define this primitive.
Note: this method computes the polygons each time this method is called. The polygons can be cached inside a CSG object.
Reimplemented from eu.mihosoft.vrl.v3d.Primitive.
Definition at line 49 of file Hexagon.java.
References eu.mihosoft.vrl.v3d.CSG.getPolygons(), eu.mihosoft.vrl.v3d.Hexagon.head, eu.mihosoft.vrl.v3d.Hexagon.height, eu.mihosoft.vrl.v3d.Hexagon.nunRad, and eu.mihosoft.vrl.v3d.Primitive.toCSG().
|
private |
Hexagon circumscribed radius.
Definition at line 18 of file Hexagon.java.
Referenced by eu.mihosoft.vrl.v3d.Hexagon.getFlatToFlatDistance().
|
private |
Definition at line 28 of file Hexagon.java.
Referenced by eu.mihosoft.vrl.v3d.Hexagon.toPolygons().
|
private |
Hexagon circumscribed radius.
Definition at line 23 of file Hexagon.java.
Referenced by eu.mihosoft.vrl.v3d.Hexagon.Hexagon(), and eu.mihosoft.vrl.v3d.Hexagon.toPolygons().
|
private |
Definition at line 27 of file Hexagon.java.
Referenced by eu.mihosoft.vrl.v3d.Hexagon.getPointToPointDistance(), eu.mihosoft.vrl.v3d.Hexagon.Hexagon(), and eu.mihosoft.vrl.v3d.Hexagon.toPolygons().
|
private |
The properties.
Definition at line 26 of file Hexagon.java.
Referenced by eu.mihosoft.vrl.v3d.Hexagon.getProperties().