rectangles Questions

5

Solved

I have two rectangles which I must return in a function whether they intersect or not. They are represented by [ x0, y0, x1, y1 ] pairs that represent the top-left and bottom-right corner of the r...
Intelsat asked 14/4, 2013 at 22:30

4

I have a rectangle that has a rotation already applied to it. I want to get the the unrotated dimensions (the x, y, width, height). Here is the dimensions of the element currently: Bounds at a ...
Tense asked 7/1, 2019 at 10:11

4

Solved

http://msdn.microsoft.com/en-us/library/system.drawing.graphics.drawrectangle.aspx FillRectangle, DrawRectangle, FillElipse and DrawEllipse all can take 4 Float (or "Single") parameters: x, y, wid...
Juster asked 20/1, 2009 at 20:37

1

Solved

I´m wondering if it is possible to append multiple rectangles per datapoint. In my example there are three datapoints. For each I try to create 2 rectangles. In the end there have to be 6 rectangle...
Bale asked 15/10, 2018 at 16:34

2

Whats the best way to convert a Rect variable to a RectF one? I am unable to cast it. RectF rect = (RectF) currentRect; //produces an error
Turki asked 18/12, 2013 at 23:17

1

Solved

I am currently programming a diagram editor in javascript with SVG. I am stuck with a problem concerning connection between rectangles. I found a lot of resources to draw a connection between cir...
Chequerboard asked 9/5, 2018 at 11:17

3

I am having the co-ordinates of top-left corner and the bottom-right corner of a list of rectangles say (a,b) and (c,d). I want to detect and remove rectangles which are within a rectangle. Overlap...

3

I have a set of axis aligned rectangles. When two rectangles overlap (partly or completely), they shall be merged into their common bounding box. This process works recursively. Detecting all over...
Bremen asked 1/2, 2018 at 7:58

4

Solved

I would like to draw a rectangle in WPF (by code) and to fill the outside of it. Here is an example : The outside of the rectangle is grey (with low opacity), and the fill of the rectangle is t...
Collar asked 18/7, 2013 at 10:28

7

Solved

I've been working on adding a Quadtree to a program that I'm writing, and I can't help but notice that there are few well explained/performing tutorials for the implementation that I'm lookin...
Mighell asked 30/1, 2017 at 21:50

3

Solved

I'm having trouble with my school homework. I have a chocolate bar that consists of either black, white or black & white (mixed) squares. I'm supposed to divide it in two groups, one that has o...
Albion asked 11/1, 2018 at 20:29

1

Solved

How can I take a photo (get an CIImage) from the successful VNRectangleObservation object? I have a video capture session running and in func captureOutput(_ output: AVCaptureOutput, didOutput sam...
Fey asked 9/1, 2018 at 14:59

1

I have a rectangular chocolate bar that consists of squares either black, white or mixed. The bar being not bigger than 50x50 squares. I'm supposed to divide the bar between two people(one gets all...
Mesoglea asked 30/12, 2017 at 21:27

3

Solved

I'm using OpenCV and want to group together rectangles that have significant overlap. I've tried using groupRectangles for this, which takes a group threshold argument. With a threshold of 0 it doe...
Why asked 29/1, 2014 at 2:45

1

Solved

Hi, I have this mess mess on the left, it's pretty much an array of rectangles with some holes (marked in red). I'm looking for a way to combine them in a way that I'll end up with as few rectang...
Viewfinder asked 4/9, 2017 at 18:36

3

Solved

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). The rectangles are axi...
Marty asked 28/2, 2011 at 16:24

3

Solved

Every rectangle has x and y coordinates, width and height. The total width of the screen is maxWidth and total height is maxHeight. I have an array containing all the already drawn rectangles. I...
Foliose asked 14/8, 2017 at 19:0

1

Solved

Problem I need to place rectangle with size n×m into free area of matrix with size N×M, where N=n*2-1, M=m*2-1. Matrix cell is considered free if it's true, and occupied if it's false. Center cell ...
Mcgary asked 14/8, 2017 at 8:52

4

I am trying to do this shape in HTML/CSS for my mobile app: https://embed.plnkr.co/9k8jbJyzUiSMSoSHlOti/ .boundary { width: 100.13723%; padding-bottom: 5.24078%; position: relative; o...
Desdamona asked 12/7, 2017 at 9:41

1

i have to implement some figures like that on the Picture with python (matplotlib). Has anyone an idea how i could achieve this? I tried to work with polygons to create these deformed rectangulars...
Desex asked 18/3, 2017 at 14:4

1

I have a simple boxplot for my data using R .. boxplot (Error~Code, DataFrame1, xlim = c(0, 27), xlab="set Code",ylab="Error", boxwex=0.75, cex.axis=0.3) and I would like to draw a transparent...
Zomba asked 5/8, 2013 at 10:38

1

Solved

I am trying to create a rectangle in svg with a border / stroke at the top and bottom and with rounded corners by using a radius (rx, ry). By using the css property "dasharray: width, height" it i...
Tirza asked 4/1, 2017 at 22:3

1

Solved

I need to evenly distribute a bunch of axis-aligned sliding rectangles constrained by a maximum width/height and by some horizontal/vertical coordinates depending from the position of the sliding s...
Clarke asked 16/12, 2016 at 18:46

4

I'm looking for an algorithm to do a best fit of an arbitrary rectangle to an unordered set of points. Specifically, I'm looking for a rectangle where the sum of the distances of the points to any ...
Undenominational asked 3/7, 2013 at 8:55

1

I tried to using the algorithm shown here: https://discuss.leetcode.com/topic/15733/my-java-solution-sum-of-areas-overlapped-area However, that algorithm only deals with finding the areas of only ...
Hildie asked 20/8, 2016 at 2:37

© 2022 - 2025 — McMap. All rights reserved.