Questions tagged [points]

A scoring system for games or algorithms. Geometric items should be tagged with coordinates or point.

This tag represents:

  • an arbitrary numerical counter for games or scoring algorithms

Please do not use this tag for:

  • a dimensional measurement for geometric calculations, such as [x, y, z] -- instead use
  • a coordinate in GPS mapping -- instead use
866 questions
-2
votes
1 answer

Algorithm to get the 2 most distant point in a 2D plane (for homework)

I have to make a efficient algorithm that gets two point that are the most distant from each other and I am trying to get the O(nlogn) complexity. I searched for an efficient algorithm, but all I could find is for the closest points. The output…
user12269498
-2
votes
2 answers

Given a set of points in 3d space, find all sets of points within a distance of eachother

I have a set of 3d points S. I need to find the set X of all sets of points in S which are within manhattan distance d of each other. i.e. for each set Y in X there exists atleast one point in 3d space that is within distance d of all points in…
jesse
  • 320
  • 1
  • 5
-2
votes
1 answer

Highcharts draggable point drag step size

In following example, I need to drag the point by certain step size, e.g. by 10. See drag: function (e) { jsfiddle
-2
votes
2 answers

Sort an ArrayList of Points in page line order

I need to order an ArrayList of Points in the page line order. Assume these points as minX and minY of Rectangle of text. Say like I have points like below Point(100,10), Point(110, 20), Point(125, 5), Point(130, 10) The Sorted order should be…
Ranju
  • 147
  • 2
  • 4
  • 10
-2
votes
2 answers

Initialize a Point2D in List<>

If I have a simple List< Point2D > declared. Example: List listOfPoints; /* What I tried */ Point2D point1; listOfPoints.add(point1); But, how does one initialize point1 so that I can have a coordinate of let's say (3,2)?
Jackson
  • 9
  • 2
-2
votes
1 answer

I cannot see the plot of my points in R

I am trying to plot a u vector using the R language. I have obtained U throught SVD applied to some training data. I have downloaded the useful library for tm and ggplot2. I want to plot the 2 dimensions of the vector U , which results from SVD of…
Marzo
  • 43
  • 1
  • 2
  • 9
-2
votes
2 answers

Sorting 2D Points in an array...what am I missing?

So here is the deal: I got a code from my colleague who cant figure out the mistakes he made. He wanted to sort the array first by Y, then by X (if Y=Y). Can you help? using System; using System.Collections; public class Point { public int x; …
-2
votes
2 answers

Least square distances

I have two ordered arrays of x(xcor) and y(ycor) values. Joining the first and last points gives a line. I want to compute the perpendicular distances of all points from this line. This is similar to least square distance. Is there a direct way to…
Abhishek Bhatia
  • 9,404
  • 26
  • 87
  • 142
-2
votes
1 answer

Random complex points from a circle and certain operation with them

My assingment is to write a progmar which chechs wether certain function defined as f(a,b,c) works. The function returns 0j if the given points on a complex plain (complex(a,b)) are in the same circle which center is 0. I can create the random…
Oliver
  • 19
  • 5
-2
votes
1 answer

Python, generating a ten Point polygon

I am attempting to generate a polygon with Points. I am using Python 3.4 on Windows 7. I would like to know where my error is in this line of code. leftEar = Polygon(Point(158,218), Point(160,208), Point(166,197), Point(174,186), Point(183,180),…
Michael
  • 33
  • 6
-2
votes
3 answers

Get Square corners from 2 points

I have 2 values and want to create a rectangle from it. So let's say: 1 = 1,1 2 = 10,8 So I want to calculate the upper left corner which would result in 1,8 and the lower right corner which would be 10,1. How can I achieve this with Java? Are…
user754730
  • 1,341
  • 5
  • 31
  • 62
-2
votes
1 answer

How to find points of drawcontour of a detected image?

I want to find points of a contour which is draw on object after following operation like background subtraction , findcontour ,drawcontour. My object is moving so that my contour is also not proper . and i want to find of maximum and minimum points…
coco
  • 11
  • 1
-2
votes
2 answers

MySQL Update Query - Incremental Number system - Syntax Problems

I've got a points system in a social media script, and I'm trying to get it so that when a user makes a post, it's adds a point to their account. The points is basically a column in my "profiles" table called "totalpoints". I've got a basic code…
-2
votes
1 answer

Angle betwee three points ios xcode

CGPoint pointA = [self.appDelegate.points[0] CGPointValue];//first point CGPoint pointB = [self.appDelegate.points[1] CGPointValue];// second point CGPoint pointC = [self.appDelegate.points[2] CGPointValue];//third point CGFloat slopeAB = (pointB.y…
Manohar
  • 55
  • 2
  • 6
-2
votes
1 answer

Calculating distance between two points on a flat plane? (php)

3rd grade question: How do you calculate the distance between two points on a flat surface? I have been going through the Google_Results and it seems everything i find applies to Long/Lat and not a flat surface. I'm working on making ObjectA…
WaxyChicken
  • 139
  • 2
  • 10
1 2 3
57
58