Skip to content
Advertisement

Tag: geometry

Using a final double variable in java [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 4 months ago. Improve this question

Java awt draw elements around a circle

I’m currently writing a little game and I came over a problem. I need to draw 64 small circles at the border of a big circle. So I want something like this: I’ve already tried many things, but they didn’t worked. How can this be done in java, using the java.awt.Component#paint() method and the java.awt.Graphics class? Thanks. Answer So, your

JavaFX how to trigger events on Geometries?

I’m writting an JavaFX application, where i use UTM32 coordinates for my geometries, i have a dynamic stroke width dependent on my zoom level. The issue is that i can’t trigger events when my stroke width is decreased at a certain factor. If you use Intellij you can start a new fx-project and copy following code to reproduce this behaviour:

Obtain ordered vertices of GeneralPath

How can I obtain the vertices of a GeneralPath object? It seems like this should be possible, since the path is constructed from points (lineTo, curveTo, etc). I’m trying to create a double[][] of point data (an array of x/y coordinates). Answer You can get the points back from the PathIterator. I’m not sure what your constraints are, but if

Advertisement