I'm using Pygame to draw some shapes on the screen. The problem is, I get those shapes from a different application, which exports a txt with the para ...

draw arc with different arguments

I'm using Pygame to draw some shapes on the screen. The problem is, I get those shapes from a different application, which exports a txt with the para ...

How to convert the radius from meter to pixel?

I have a camera with these specs: full resolution 1280x1024 pixel size 0.0048mm focal length 8 mm I need to detect a ball in this image. It ...

Avoiding collision when placing a circle near other circles

I have a Main circle, and Other nearby circles. All circles are always the same size. No two circles may ever overlap. I'd like to find out w ...

How to find out whether the largest rectangle contains other smaller rectangles

I have to create a program that generates 3 random rectangles and finds the area of each using the coordinates of the upper left point and the botto ...

How to calculate coordinates of tangent points?

I need to make a svg file for a project and I need some parameters that I haven't figured out how to calculate yet. I have a point of coordinates x1,y ...

Not able to understand why the angles for drawing star using Python's turtle module is

The turtle module uses commands like fd (forward) & bk (back) for movement and rt (right) & lt (left) for turning. Most programs I have done, ...

Flutter. How to draw these designs in a container

enter image description here Please tell me how to draw these encircled geometrical lines in a container . After drawing a container widget how shou ...

How do I rotate a point on the surface of a sphere given 3 degrees of rotation?

I have a point on a sphere that needs to be rotated. I have 3 different degrees of rotation (roll, pitch, yaw). Are there any formulas I could use to ...

How do I generate a random point on a circles circumference in 3D space?

This question was migrated from Stack Overflow because it can be answered on M ...

How to draw the area around a shape

I worked on a very simple map editor phase for a game in java. The goal is to put some islands with different shape on the map. But there is some cons ...

Camera Geometry: Algorithm for "object area correction"

A project I've been working on for the past few months is calculating the top area of an object taken with a 3D depth camera from top view. workflo ...

How can i use Descarta2D package for Mathematica?

Recently I download a pdf book named -"Exploring Analytical Geometry with Mathematica ".In this book, they used a package "Descarta2D". I can't unders ...

Calculate the length of a polygon in python

I have a geopandas dataframe: I created a polygon out of all of those points like this: The output is a polygon: How can I get the length in ...

Collision detection between POV of object and circles and rectangles

in " Drawing point of view for an object in PyQt6 " we made a point of view for an object. and in " Collision detection between circle and rectangle " ...

Reading geometries storaged as a CSV file created in R

I received a CSV file created in R with some information of tracts in the District of Columbia and their geometries. However, the format is strange to ...

Drawing no intersected polygon with dragging vertexes

I'm trying to draw a polygon without intersecting. Below is good example which I want to. Bad example what I want to prevent. If I choose red d ...

Calculating the intersection point of a 3D line single Axis

Im trying to work out how to calculate where a 3D line(Two 3D points) and a Axis meets. In my case im trying to calculate the intersection of a 3D Po ...

Filling a polygon with lines parallel to its longest side

Given a list of points that form a polygon, how can I create evenly spaced lines within that polygon that are parallel to it's longest side? I am abl ...

How can I cluster coordinate values into rows using their Y-axis value?

Currently I have a dataframe of X Y coordinates which represent some circles that have been detected in OpenCV Python. These circles form distinct row ...

Constant work-space algorithm for triangulating a set of points

I'm researching this paper and attempting to implement some of the algorithms presented. I'm currently at the first algorithm, which presents a way to ...

Sorted:

Quality: