# geometry

• ## How to Draw Circle, incrementally, to create an animated fill effect (using Corona)2018-09-01

I'm having trouble even figuring out where to start with this. ANY help would be highly appreciated! Using the Corona SDK I want to draw a circle that will slowly fill as a percentage increases. The fill effect will follow the path of the circle, goi

• ## I have a dart board. How can I assign points for the different sections?2018-07-15

PLEASE do not just post a solution to my problem. For me, this is all about understanding how to do this and be able to explain to myself and others how this and that makes it all work! I have a dart board I created with turtle. I can post it if some

Tags: math, geometry
• ## How to add start button to Simon Says Game in Java?2018-02-13

I want to draw an inscribed circle. A circle that is empty with no fill but making it have a full stroke. My code : /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package simon; import java.awt.*; imp

Tags: java, geometry
• ## Find the distance between a point to a triangle in 3D2017-08-03

As far as I know the method to find distance between 3D point to triangle is to check if the point is lie inside triangle's plane so the distance will be closest distance to triangle's plane, otherwise if the point lie outside of the triangle then th

Tags: algorithm, geometry
• ## Properties of projected rectangles2017-07-22

For an OpenCV project I try to find projected rectangles in a camera image. I know the ratio of the rectangles. I have a calibrated camera and try to find rectangles in the image by means of findContour and approxPolyDP. So far this is working very w

• ## Check If there exists a Circle2015-03-10

I was asked this during a Google Interview. We are given a string consisting of letters- F,L,R. - which is the instruction a robot follows F- goes forward by one step. L-turn left. R- turn right. String length can be upto 2500 characters. The string

• ## Are constant functions linear?2015-02-23

Linear functions in mathematics are those polynomials whose degree is 1 and hence they are straight in nature when plotted on a graph. But the constant functions like f(x) = 3, even though their degree is 0, are straight in nature when plotted on a g

• ## I need to calculate the latitude/longitude using existing lat/longitude , distance and direction2015-02-23

While integrating google API in Java, I need to calculate another place's lat/long using existing lat/long, distance and direction. How to calculate that point? --------------Solutions------------- The following PHP code provides the point from \$lat1

• ## Convert Shape into reusable Geometry in WPF2015-02-04

I am trying to convert a System.Windows.Shapes.Shape object into a System.Windows.Media.Geometry object. With the Geometry object, I am going to render it multiple times with a custom graph control depending on a set of data points. This requires tha

Tags: wpf, geometry, custom controls, shape
• ## get all spatial type points within radius in km with mariaDb, mySQL2015-01-19

Here is the problem, Already made several researches about it, but did not find any clear and well explained solution about that. Some people are talking about functions like st_distance or st_within which refer to mysql/mariadb versions but these fu

• ## Find the coords of the 90° angle of a right triangle 2015-01-14

I know the two points A(7,1) B(6,4) of the hypotenuse (and the distance), I know the angle of the adjacent (45°, but it can change) but I need to find where those two would meet to create a right triangle C(?,?). But I don't know how to find the coor

• ## Issue with removing points from a boost::geometry::index::rtree2014-12-23

I'm using boost 1.56 on OS X, installed through homebrew. I'm running into a compilation problem - specifically, it appears that I cannot remove values from a boost::geometry::index::rtree. Here's the code I've come up with so far: #include <iostr

Tags: geometry, boost
• ## Closest point on a circle to a line segment python 2014-12-23

I need to find the closest distance between a box and a circle, however, I realize this can be broken up into the closest distance between a line segment and a circle. Given I have a line segment of two points point1_x,point1_y and point2_x, point2_y

Tags: python, geometry
• ## Calculating point coordinates from user tap with constraints2014-12-18

I am trying to calculate the coordinates along a circle corresponding to the tap location. The coordinates should be on the border of the circle nearest to the tap location (e.g. the border that is less distant from the radius). To facilitate this I

• ## Finder what point is to the left of a line/point after spinning it2014-12-15

I am currently trying to write a shader in unity that draws a triangular pattern around countries in a risk-styled game if both countries are not owned by the same player (visual aid to see your borders). Right now, I'm having an issue with making th

Tags: shader, geometry, game engine, polygon
• ## three.js - Split Faces with Long Edges into Two Faces2014-12-11

I'm writing script, that splits too long edges of faces (make 2 faces instead 1 big) Result exports to .obj file Geometry reduces ok, but after rendering the result, reduced faces have wrong light reflection and WebGl event doesn't show some faces. h

• ## How do I modify this python code?2014-11-17

This python code draws a sierpinski triangle. It starts by drawing the main triangle and then draws a bunch of smaller characters import turtle def drawTriangle(points,color,myTurtle): myTurtle.fillcolor(color) myTurtle.up() myTurtle.goto(points[0][0

Tags: size, python, geometry, draw
• ## How to find the center of circle using the least square fit in python?2014-10-26

I'm trying to fit some data points in order to find the center of a circle. All of the following points are noisy data points around the circumference of the circle: data = [(2.2176383052987667, 4.218574252410221), (3.3041214516913033, 5.223500807396

Tags: python, geometry, scipy
• ## Finding area of a triangle2014-10-11

My goal is to find the area of a triangle using the vertices that are in a dictionary. For the sake of simplicity, i am using the coordinates (0,0), (1,0), and (0,2): vertices = {1: (0,0), 2: (1,0), 3: (0,2)} How can i access the specific numbers in

Tags: python, geometry, dictionary, area
• ## Best way to transform groups of vertices inside a THREE.Geometry object?2014-09-26

The vertices inside my THREE.Geometry object are positioned as groups of 4 (2D squares), and I want to be able to increase and decrease the sparseness of the location of the those squares (i.e. alter the space in-between the squares without affecting

Tags: geometry, matrix, three.js