Questions tagged as 'geometria'

1
answer

How to find the vector corresponding to the 3-dimensional angle?

Hello, I'm doing a 3D game and I'm having trouble making 3D raycasting. In case, I want to do to the camera, to know if there is no object between the camera and the player. For this I need to find a vertex that represents the angle and check on...
asked by 06.08.2015 / 18:14
1
answer

Obtain / Render edges of a 3D object

I have the following question regarding getting the positions of a particular edge of a 3D object. Example, I have a track (car game) and I want to calculate, through a C # script, both sides of the track. See image: I have the posit...
asked by 12.03.2018 / 19:55
3
answers

How to return points within a radius?

I'm working on an app where I would need to return points (Lat, Long) in a radius of size X (Km) from the user's location (Lat, Long). I have come up with the following logic: Get the user's current location Enter the location of the user...
asked by 11.04.2015 / 19:09
1
answer

How do you get the points of a circle through an angle in a Cartesian plane?

Imagine a circle with a radius of 5 in the Cartesian plane. By analogy I already know the following angles: 0° (ou 360°): (x = 5, y = 0) 90° : (x = 0, y = 5) 180° : (x = -5, y = 0) 270° : (x = 0, y = -5) Assuming...
asked by 14.04.2018 / 23:13
1
answer

Calculate the diameter of a circle to fill the rectangle according to the position of the mouse

My question is more about math than programming. But anyway ... I am creating a small script to determine the position (which is made by the mouse) and the diameter of a circle that is inside a rectangle. So far I have been able to determine...
asked by 04.07.2016 / 21:50
1
answer

Detect collision of a rotated rectangle?

I am using the following code to know if a point is inside a rectangle: public bool Intersect(ÍcaroDantasCollisions.Rectangle rectangle) { if(x >= rectangle.x && x <= rectangle.x + rectangle.width) { if(y >= re...
asked by 22.09.2016 / 23:55
1
answer

Translating, rotating, and scaling a rectangle

Imagine the following rectangle A and B lozenge: Rectangle A has the dimensions 4200 by 3000. The B lozenge has the maximum dimensions of 167 by 167, its sides having 98 by 98. Rectangle A is equivalent to diamond B, so I would like...
asked by 11.03.2017 / 16:15
1
answer

Rotate points belonging to a bezier curve on canvas js

Alright? I would like help with a problem I recently got while working with JS. I need to do a function in JS that can rotate a set of points present in a bezier curve. I've previously researched a way to do this point rotation, but everythin...
asked by 07.12.2018 / 01:34