Questions tagged [geometry]

Study of mathematical concepts and problem-solving techniques in geometry as they pertain to data structures and algorithms.

Creating a vertical oval using Python Turtle

Exploring the capabilities of Python's turtle module has been quite fascinating. I am on a mission to create a vertical oval with half of it crossing the y axis, using just the radius of a small arc (let's say 120 for a start). If you want an i ...

Styling a clock with rounded corners using CSS: Border-radius trick

Attempting to craft a analog 12-hour clock using basic CSS properties, I initiated the process by forming a square div of the size 500px. Applying a border-radius of 250px resulted in an aesthetically pleasing circle design. Following this step, I incorpor ...

Issues with executing a Selenium project in Java using Maven - Troubles with the Surefire plugin

I encountered the following issue: While running my Selenium-Maven-Java project, I faced a Surefire plugin error. When building my project on Circle CI, I received this build error. I would appreciate any suggestions on how to rectify this. This is ...

Donut chart in SVG format failing to display properly in email messages

Here is an example of a donut chart that I am working with: <div class="donut-chart" style="position: relative;"> <svg width="100%" height="100%" viewBox="0 0 42 42" class="donut"> ...

Calculate the degree measure of the angle between two points

class Point: def __init__(self, x: int, y: int): self.x: int = x self.y: int = y I have two points M and N, with their coordinates represented by integers (positive, zero, or negative). My goal is to calculate the angle in degrees betw ...

What is the best way to design an element in HTML/CSS with a curved semicircle border at the top?

I'm looking to design an HTML/CSS element that features a semicircle at the top-middle with a border. Inside this semicircle, I want to place a smaller circle containing a single character (similar to the X in the provided image). Additionally, there may b ...

JavaScript automatically arranges child elements within their parent container in a random distribution without any overlapping

I am experimenting with creating a dynamic layout of circles (divs with border-radius) within a container without any overlap. Check out my progress here - https://jsbin.com/domogivuse/2/edit?html,css,js,output var sizes = [200, 120, 500, 80, 145]; var m ...

Is there a unique shape element, such as a true circle, available in HTML5?

There doesn't seem to be any documentation on this, suggesting they may not exist. However, it's always worth investigating. I am in search of a perfectly circular (or any polygon shape other than a rectangle) element. I can create a circle in canvas, but ...

the gravitational center of every cell within an N-dimensional grid of right angles

In a multi-dimensional rectilinear grid, the edges in each dimension 'i' are defined as x_i = {x[i, 0], x[i,1], ..., x[i, Ni-1], x[i, Ni]}, with 'N_i' edges in that specific dimension. A density y of shape (N0, N1, ... Ni, ... Nn-1) is ...

Step-by-step guide for making a CSS triangle design that is compatible across different browsers

Here's a common CSS code for creating a CSS triangle: display: inline-block; vertical-align: middle; content: " "; border-right: 4px solid transparent; border-left: 4px solid transparent; border-top: 6px solid black; width: 0; height: 0; Click here ...

Tips for converting basic geometric figures into numpy arrays

Is there a way to create a 200x200 numpy array containing a circle with a radius of 80, centered at coordinates (100,100), and a stroke width of 3 pixels in Python 2.7 without using file operations? I am looking for a solution that utilizes geometry or i ...

Is there a way for me to extract a random set of coordinates from a particular country using this GeoJson file?

My goal is to utilize the following GeoJson file Through PHP on my server, I want to be able to retrieve a random point by calling a URL like: http://example.com/point.php?country=Argentina and having it output one random point. I am aware that the geojs ...

Origin of SVG Circle Stroke

Describing my current issue is proving to be challenging, but I'll do my best: My project involves creating an SVG circle progress bar and fortunately, I came across a great example that aligns with what I aim to achieve. I prefer not to use any thir ...

Obtain the robot simulation angles by utilizing atan2 function on a circular path

In the simulation I am running, there is a robot that moves in circular motion with a central coordinate of (x1, y1). The robot regularly measures its position and provides the information. For example, let's say the latest measured coordinate is (x3, y3). ...