Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (788)
Games in Android Showcase (234)
games submitted by our members
Games in WIP (863)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Is there a small geometry library for java out there?  (Read 8378 times)
0 Members and 1 Guest are viewing this topic.
Offline wessles
« Posted 2013-11-02 20:24:12 »

What I need is a small, simple geometry library with shapes and intersection. I googled it, and nothing useful came up.

Anyone know of one?
Offline JFixby
« Reply #1 - Posted 2013-11-02 20:46:30 »

what for?

my dev log:
Offline Opiop
« Reply #2 - Posted 2013-11-02 20:52:16 »

Its better just to do it yourself, honestly. If you're having trouble with collision detection, thats a whole other issue, but a basic geometry library isn't hard to create, just tedious.

Edit: I found this:
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline JFixby
« Reply #3 - Posted 2013-11-03 17:33:46 »

I dunno, maybe it make sense for you to use Box2D wrapped by libGDX. Check it out anyway.

my dev log:
Offline Jeremy
« Reply #4 - Posted 2013-11-03 22:47:55 »

I said 'small' and 'simple' 'geometry library,' not a physics library!

I haven't used it personally, but it is quite robust, mature and it works in pure Java which is also a plus.

JevaEngine, Latest Playthrough (This demo is networked with a centralized server model)
Offline Opiop
« Reply #5 - Posted 2013-11-04 01:33:30 »

Yes, but we all know box2D is a full out physics library, which is not what he needs. A simple class that creates geometry based on coordinates that are passed in should be more than sufficient. I don't see the need to overkill it with box2D, not that its a bad library, its actually very good.
Offline CommanderKeith
« Reply #6 - Posted 2013-11-04 05:18:58 »

I had the same problem and tried to make one: straightedge ( It's on google code and you can download the source. You would be most interested in the KPolygon and KPoint classes. They contain most of the useful geometry methods.
For more advanced geometry stuff, try JTS. It's more advanced than my library, but not made for speed.

Offline StumpyStrust
« Reply #7 - Posted 2013-11-04 06:44:58 »

What is wrong with the ones in java? You said you looked online but never looked at java? Java has everything you want. Make a polygon and test other polygons against it.

I would NOT write your own. They are simple but hard to make fast. CommanderKeiths like is good. Use that lib.

Offline Nate

« JGO Bitwise Duke »

Medals: 167
Projects: 4
Exp: 14 years

Esoteric Software

« Reply #8 - Posted 2013-11-04 18:30:02 »

It's a discussion forum, people are discussing. You don't get to end a thread, even if you started it. Smiley

libgdx has a Rectangle, etc class. There is an Intersector class and most if it would be easily ported for use anywhere.

Pages: [1]
  ignore  |  Print  

hadezbladez (2209 views)
2018-11-16 13:46:03

hadezbladez (833 views)
2018-11-16 13:41:33

hadezbladez (2165 views)
2018-11-16 13:35:35

hadezbladez (433 views)
2018-11-16 13:32:03

EgonOlsen (3472 views)
2018-06-10 19:43:48

EgonOlsen (3725 views)
2018-06-10 19:43:44

EgonOlsen (2285 views)
2018-06-10 19:43:20

DesertCoockie (3021 views)
2018-05-13 18:23:11

nelsongames (3095 views)
2018-04-24 18:15:36

nelsongames (3911 views)
2018-04-24 18:14:32
Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!