rectangles
Collision handling with Rotated Rectangles
I am about to develop a little 2D game. The perspective is top Down like, so you can only see the Had of the player.[详细]
2023-03-12 02:12 分类:问答Algorithm to split an image into smaller images reducing the amount of whitespace and specifying maximum amount of rectangles
I am looking for an algorithm which can split an image into smaller images, with some constraints. One constraint is to use the least amount of \"whitespace\" meaning empty pixels. And the other is t[详细]
2023-03-05 10:48 分类:问答Algorithm for finding the fewest rectangles to cover a set of rectangles without overlapping
I have a set of rectangles and I would like to \"reduce\" the set so I have the fewest number of rectangles to describe the same area as the original set. If possible, I would like it to also be fast,[详细]
2023-03-04 12:57 分类:问答Java collision detection for rotated rectangles?
I am writing my first java game and so far: I\'ve made a rectangle that can walk around with WSAD, and he always faces where the mouse is pointing. Also if you click, he shoots bullets where your mou[详细]
2023-03-03 19:51 分类:问答Tile (scalable) stacking algorithm
Here is the problem. I have rectangular canvas that have size of 1. So it have coordinate sistem of (0.0 ... 1.0 - x and 0.0 ... 1.0 - y).[详细]
2023-02-15 02:53 分类:问答Difference (XOR) between two rectangles, as rectangles?
I\'m looking for a simple way to calculate the difference between two rectangles. I mean all points which belong to one of the rectangles, but not to both (so it\'s like XOR).[详细]
2023-02-13 18:13 分类:问答How to calculate distance between two rectangles? (Context: a game in Lua.)
Given two rectangles with x, y, width, height in pixels and a rotation value in degrees -- how do I calculate the closest distance of their outlines toward each other?[详细]
2023-02-09 22:41 分类:问答How can I create a graphics drawing of a Core Data entity?
I\'m trying to create a graphic representation of a core data entity.I have a custom view (subclass of NSView) where the drawing will happen.My entity has name, width, and height attributes.When I cli[详细]
2023-02-07 22:04 分类:问答Frustum culling rectangles problem
I am trying to implement frustum culling in my OpenGL 2d game. The only kind of geometric objects in 开发者_运维知识库my game at this point are rectangles, so I thought this would be pretty easy, but[详细]
2023-02-07 11:39 分类:问答Inverting a set of rectangles on a 2D plane
I have a rectangular plane of integer dimension.Inside of this plane I have a set of non-intersecting rectangles (of integer dimension and at integer coordinates).[详细]
2023-01-26 08:54 分类:问答