use of javafx.beans.property.SimpleDoubleProperty in project FXyzLib by Birdasaur.
the class Text3DHelper method getArea.
private double getArea() {
DoubleProperty res = new SimpleDoubleProperty();
IntStream.range(0, list.size() - 1).forEach(i -> res.set(res.get() + list.get(i).crossProduct(list.get(i + 1)).z));
return res.doubleValue() / 2d;
}
Aggregations