geometry Questions

2

Solved

I'm trying to build render the raw data from a Quake 3 .map file with Java. The .map format stores brush (shape) information as a series of planes, but I'd like to convert them to points of the for...
Bargeboard asked 6/9, 2009 at 19:37

7

Solved

Please can someone post a SQL function to convert easting/northing to longitude/latitude. I know it's incredibly complicated but I haven't found anyone who has documented it in T-SQL. This javasc...
Marinamarinade asked 5/11, 2010 at 16:17

5

Is there any easy solution? Or has anybody an example of an implementation? Thanks, Jonas
Selma asked 11/10, 2016 at 18:57

4

I have a bunch of images with labeled polygons marked in red (255,0,0): I want to extract the bounding box but inside the polygon as shown with the blue rectangle: OpenCV cv.boundingRect gives me...
Quadriplegia asked 15/12, 2021 at 10:49

6

Solved

I need to create a binary bitmap from a closed 2D polygon represented as a list of points. Could you please point me to efficient and sufficiently simple algorithms to do that, or, even better, som...
Heliotaxis asked 27/8, 2009 at 14:13

10

Solved

I'm trying to draw a gradient in a rectangle object, with a given angle (Theta), where the ends of the gradient are touching the perimeter of the rectangle. I thought that using tangent would wo...
Maud asked 31/10, 2010 at 2:28

4

Solved

I want to draw a circle in the console using characters instead of pixels, for this I need to know how many pixels are in each row. The diameter is given as input, you need to output a list with th...
Delorisdelorme asked 15/1, 2022 at 14:56

3

I want to select random points on a given sphere. This page explains it quite well: http://mathworld.wolfram.com/SpherePointPicking.html ("To obtain points such that any small area on the sphere.....
Susannsusanna asked 3/4, 2011 at 19:15

9

I'm trying to find the point of intersection between a sphere and a line but honestly, I don't have any idea of how to do so. Could anyone help me on this one ?
Cowardly asked 4/5, 2011 at 12:13

1

Solved

That's a problem from Polish Olympiad in Informatics, called Pionek (PIO). Given a set of not unique vectors, find the greatest possible euclidean distance in reference to (0,0) point you can achie...
Martyrology asked 9/6 at 18:29

6

Solved

I'm currently creating a mesh in three.js using the following: sphereGeometry = new THREE.SphereGeometry( 1, 16,16 ); mesh = new THREE.Mesh( sphereGeometry, material ); I've also created a torus...
Bureaucratic asked 19/6, 2013 at 22:35

5

Solved

I have a polygon consists of lots of points. I want to find the intersection of the polygon and a circle. Providing the circle center of [x0,y0] and radius of r0, I have wrote a rough function to s...
Familial asked 15/6, 2015 at 11:51

9

I am trying to generate random points on the surface of the sphere using numpy. I have reviewed the post that explains uniform distribution here. However, need ideas on how to generate the points o...
Coincident asked 28/11, 2015 at 22:1

1

Solved

I am writing a Labelling Software and I have encountered a very difficult mathematical problem. I have objects which I can scale up, down, left, right, up-right, down-left etc. I have wrote all of ...
Endogenous asked 10/5 at 15:4

13

Solved

Suppose I have an array of points in random order, and I need to find a polygon (by sorting them, such that every adjacent pair represents a side) which passes through all of the points, and its si...
Marozas asked 10/1, 2013 at 17:4

3

Solved

I have a weird problem at hand and I am struggling to find a solution. I have created a triangle <div> "container" using only CSS but what I would like now is to insert some text inside the ...
Charades asked 27/2, 2013 at 13:3

12

Solved

Given a 2D circle with 2 angles in the range -PI -> PI around a coordinate, what is the value of the smallest angle between them? Taking into account that the difference between PI and -PI is no...
Miserly asked 10/12, 2009 at 6:1

5

Solved

I have 3 points containing X, Y, Z coordinates: var A = {x: 100, y: 100, z: 80}, B = {x: 100, y: 175, z: 80}, C = {x: 100, y: 100, z: 120}; The coordinates are pixels from a 3d CSS transform. ...
Gaseous asked 1/11, 2013 at 15:26

3

Solved

I am struggling with this part of my task at work. I've deliberately not detailed the context of the work task to try and keep the focus on the problem. I have to merge rectangles into a single pol...
Peroxy asked 3/3, 2017 at 0:39

5

Solved

I'm working on flutter project using google-maps-flutter plugin, and I want to check if the user location is inside the polygon that I created on the map. There is an easy way using JavaScript api ...
Commingle asked 21/5, 2020 at 20:57

30

Solved

I have a line from A to B and a circle positioned at C with the radius R. What is a good algorithm to use to check whether the line intersects the circle? And at what coordinate along the circl...
Driest asked 2/7, 2009 at 9:15

7

Solved

I have three points on the circumference of a circle: pt A = (A.x, A.y); pt B = (B.x, B.y); pt C = (C.x, C.y); How do I calculate the center of the circle? Implementing it in Processing (Java)....
Dandy asked 5/11, 2010 at 3:35

4

There are two coordinate systems. We know the 3D coordinates of the origin and the 3D vectors of the axes of the second coordinate system with respect to the first coordinates system. Then how can ...
Catlett asked 21/12, 2015 at 8:57

10

Solved

Finding the angle between two vectors is not hard using the cosine rule. However, because I am programming for a platform with very limited resources, I would like to avoid calculations such as sqr...
Ephor asked 15/9, 2009 at 14:9

3

Solved

I'm supposed to create a spatial database and have installed Postgres and added the PostGIS extension. When I try to add a column of type public.geometry it always gives an error message that ...
Supersaturated asked 21/11, 2016 at 2:15

© 2022 - 2024 — McMap. All rights reserved.