Search in sources :

Example 1 with SegmentDroite

use of org.graphysica.espace2d.forme.SegmentDroite in project graphysica by Graphysica.

the class MainApp method ajouterObjetsEspace.

private void ajouterObjetsEspace() {
    espace.ajouter(new Point(Vector2D.ZERO));
    espace.ajouter(new Point(new Vector2D(4, 8)));
    espace.ajouter(new SegmentDroite(new Point(Vector2D.ZERO), new Point(new Vector2D(4, 8))));
}
Also used : Vector2D(org.apache.commons.math3.geometry.euclidean.twod.Vector2D) Point(org.graphysica.espace2d.forme.Point) SegmentDroite(org.graphysica.espace2d.forme.SegmentDroite)

Aggregations

Vector2D (org.apache.commons.math3.geometry.euclidean.twod.Vector2D)1 Point (org.graphysica.espace2d.forme.Point)1 SegmentDroite (org.graphysica.espace2d.forme.SegmentDroite)1