rectangles
Java Game - Easiest way to draw buildings
It\'s my first time doing Java GUI stuff, and I have a few questions. I\'m making a simple side-scrolling game - planning it out, specifically. The window is going to be 800x800.[详细]
2023-01-17 22:09 分类:问答Displaying rectangles in game window with XNA
I want to divide my game grid into an array of rectangles. Each rectangle is 40x40 and there are 14 rectangles in every column, with a total of 25 columns. This covers a game area of 560x1000.[详细]
2022-12-29 11:21 分类:问答Merging and splitting overlapping rectangles to produce non-overlapping ones
I am looking for an algorithm as follows: Given a set of possibly overlapping rectangles (All of which are \"not rotated\", can be uniformly represented as (left,top,right,bottom) tuplets, etc...), i[详细]
2022-12-28 17:47 分类:问答Rectangles Covering
I have N rectangles with sides parallel to the x- and y-axes.There is another rectangle, model.I need to create an algorithm that can tell whether the model is completely covered by the N rectangles.[详细]
2022-12-26 09:47 分类:问答Partition a rectangle into near-squares of given areas
I hav开发者_如何学Goe a set of N positive numbers, and a rectangle of dimensions X and Y that I need to partition into N smaller rectangles such that:[详细]
2022-12-24 17:59 分类:问答Finding the overlapping area of two rectangles (in C#)
Edit: Simple code I used to solve the problem in case anyone is interested (thanks to Fredrik): int windowOverlap(Rectangle rect1, Rectangle rect2)[详细]
2022-12-08 10:05 分类:问答using Math.random() to generate only even and odd numbers in a certain interval
The problem says to Write a method that takes a Rectangle as a parameter, sets i开发者_如何学JAVAts length to a random, even integer between 10 and 20 inclusive, and sets its width to a random, odd i[详细]
2022-12-07 20:26 分类:问答