Questions tagged [bounds]

In user interfaces and graphics, bounds refer to the size and location of a window or view.

In user interfaces and graphics, bounds refers to the size and location of a window or view. In 2D graphics, this is broken down into four parts. Combinations often used include:

  • x-location, y-location, width, and height.
  • x-location, y-location, right, bottom.

Likewise, in 3D graphics, bounds are often broken into 6 components:

  • x, y, z, width, height, depth
769 questions
2
votes
3 answers

libgdx camera position using viewport

I am rather experiences libgdx developer but I struggle with one issue for some time so I decided to ask here. I use FillViewport, TiledMap, Scene2d and OrtographicCamera. I want the camera to follow my player instance but there are bounds defined…
Mateusz Gaweł
  • 673
  • 1
  • 8
  • 22
2
votes
0 answers

Setting an Arbitrary End istream_iterator

Is it possible for me to set an ending istream_iterator other than the default constructed one? One use case would be initializing a vector with the first 13 elements from an istream_iterator: vector{ istream_iterator(cin), x)…
Jonathan Mee
  • 37,899
  • 23
  • 129
  • 288
2
votes
0 answers

Delphi Matrix and Bounds Rect

someone who can help me? I have an object with the follow properties: FRect := TRectF( 50, 45, 150, 145 ); FRotationScale := 15; FRotationCenter := TPointF( 0.5, 0.5 ); FScale := 1; FScaleCenter := TPointF( 0.5, 0.5 ); with this function i get…
2
votes
0 answers

UITableView bounds when scrolls up?

My UIViewController contains only UITableView,here my tableview frame is for example (0,0, 320, 480) this is always same because "frame is relative to superview". Here i want to know is when scrolls the UITableView 100px up at this point of time…
simbesi.com
  • 1,539
  • 3
  • 17
  • 27
2
votes
0 answers

Compute gradient and hessian with the python package numdifftools when parameters are bounded

I have minimized a log likelihood function using scipy.minimize and I want to compute the standard-errors associated to the parameters. In cases in which parameters are not bounded, using numdifftools (nd.Gradient and nd.Hessian) works perfectly. I…
Ariane
  • 173
  • 1
  • 2
  • 10
2
votes
5 answers

How to present a "gallery" on the ipad?

I'm building an app for the ipad that uses the youtube api to get the video thumbnails and present them in a gallery (like the native youtube app on the ipad). Basically it's just a bunch of UIImageViews on a UIScrollView. Now the problem is that…
Alex1987
  • 9,397
  • 14
  • 70
  • 92
2
votes
0 answers

IOS Swift UIImagePickerController. How to access the bounds of the live camera feed?

Trying to create an app that uses the UIImagePickerController for its picture taking activities. I'm using a cameraOverlayView to accomplish this (for now, it just contains two buttons, one for Taking/Keeping the Picture and the other one for…
2
votes
1 answer

Frames vs Bounds and autolayout constraints?

I recently read a wonderful question regarding frames & bounds property of views over here - UIView frame, bounds and center. I tried to experiment on that a bit more with autolayout as well and now I find myself in a very conflicting scenario.…
G.Abhisek
  • 1,034
  • 11
  • 44
2
votes
1 answer

Photoshop script - How to get the bounds of the visible portion of a layer set (group)?

I'm writing a simple Photoshop script where I need the bounds of the visible portion of the active layer (i.e. the bounds after the mask is applied). Thankfully, the ArtLayer.bounds property gives you exactly that for any given layer. However, if…
jedivader
  • 828
  • 10
  • 23
2
votes
1 answer

weird error message using ggsave /sprintf

I am calculating residuals from many regressions to plot these residuals afterwards with ggplot. I took the 6 variables of interest from my datafile and created the subfieldsdata file (6 columns, 116 rows). The linear regression models: buildres…
2
votes
1 answer

Detect collision inside editor

I am creating an editor extension to easily create 2D and 3D levels. I can move a generator box using arrow keys and place a prefab assigned on the num keys. The problem is I want to check that, if the prefab is already at that position, then it…
2
votes
3 answers

Scala Type: How to Restrict the Generic Type of a Subclass?

I've a trait: trait OAuthService { def sendWithAuthorizationQueryParams[A](request: OAuthRequest)(implicit unmarshaller: Unmarshaller[ResponseEntity, A]): Future[A] = { val httpRequest = request.toHttpRequestWithAuthorizationQueryParams …
Abhijit Sarkar
  • 21,927
  • 20
  • 110
  • 219
2
votes
0 answers

Leafletjs map bounds changing with zoomlevel?

I defined bounds for my map. On zoom level 15 my geoposition is displayed inside the bounds inside the viewport of my android. I keep my geoposition and zoom to level 17 and try to locate my position again. Now I get the error message: Your position…
wolfmuc
  • 233
  • 1
  • 2
  • 10
2
votes
1 answer

How to findObject in UiAutomator using position on screen (bounds)

I want to use device.findObject() to find an object in my screen, which requires a UiSelector. So far so good. The problem is that I have several items only distinguishable by their position on the screen, e.g., in the messaging application all the…
Inês
  • 882
  • 3
  • 13
  • 28
2
votes
2 answers

Rotation and getBounds() in Phaser

I'm using Phaser 2.3.0 and I want to know the bounds of a rotated sprite. But when I change sprite.rotation, the values of sprite.getBounds() don't change: sprite = game.add.sprite(0, 0, "img"); // game.load.spritesheet("img", "grid.png", 32,…