Search in sources :

Example 1 with SimpleDoubleProperty

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;
}
Also used : SimpleDoubleProperty(javafx.beans.property.SimpleDoubleProperty) DoubleProperty(javafx.beans.property.DoubleProperty) SimpleDoubleProperty(javafx.beans.property.SimpleDoubleProperty)

Aggregations

DoubleProperty (javafx.beans.property.DoubleProperty)1 SimpleDoubleProperty (javafx.beans.property.SimpleDoubleProperty)1