JavaFX Polygon Translation, Rotation, Scaling and its Points
<p>I ran into a strange issue with the polygon class from javafx (java 8).
When I apply a set translate, rotate or scale on the polygon instance it is correctly moving the polygon around on my shape. The problem is, the points in the getPoints() method stay the same. 
I started now to create my own methods and moving around the points and resetting them, the methods do what they should, but is it the right way?</p>

<p>Here an example:</p>

<pre><code>private void translatePoints(double translateX, double translateY) {
    List&lt;Double&gt; newPoints = new ArrayList&lt;&gt;();
    for (int i = 0; i &lt; getPoints().size(); i += 2) {
        newPoints.add(getPoints().get(i) + translateX);
        newPoints.add(getPoints().get(i + 1) + translateY);
    }
    getPoints().clear();
    getPoints().addAll(newPoints);
}
</code></pre>

<p>Is there a way to get the translated, rotated and scaled points after a couple of operations?</p>

<p>Or do I have to implement them all separatly?</p>