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
-1
votes
1 answer

Check if two given line segments intersect but not including a touch point

I found an algorithm on GeeksForGeeks for C language and it's look like this: struct Point { int x; int y; }; // Given three colinear points p, q, r, the function checks if // point q lies on line segment 'pr' bool onSegment(struct Point p,…
-1
votes
1 answer

Determine if an arc represents an reflex or acute angle

I have this seemingly simple but very confusing problem. Given I have a set of vertices (x1,y1), (x2,y2), (x3,y3)...... representing an arc. The points can either be clockwise or counter clockwise, but are all similarly ordered. And I know the…
Abel Tan
  • 37
  • 3
-1
votes
2 answers

Most "thorough" distribution of points around a circle

This question is intended to both abstract and focus one approach to my problem expressed at "Find the most colourful image in a collection of images". Imagine we have a set of circles, each has a number of points around its circumference. We want…
hippietrail
  • 15,848
  • 18
  • 99
  • 158
-1
votes
1 answer

Magento rewards cart does not return the total points to be spent

I have integrated the Magento rewards program to be the main currency insted of money. Users have to earn points and spend them as the methhod of payment for all products. Currently I am experiencing an issue where the User tries to add items to the…
-1
votes
1 answer

Detect whether four points or four lines in 2D space can map to a flat right-angled rectangle rotated in 3D space

We are given either: 4 points in Cartesian coordinates 4 straight lines in Cartesian space We assume this 2D Cartesian space is a perspective projection of a 2D space. I may be wrong but I believe right-angled rectangles impose a constraint such…
hippietrail
  • 15,848
  • 18
  • 99
  • 158
-1
votes
2 answers

algorithms or generators or examples road lanes/ and networks

I want to generate roads for race-car game, for example (x = 0, y = 0), (x = 0, y = 5), (x = 0, y = 10) ... (x = 0, y = 100) its vertical lane. (x = 0, y = 0), (x = 5, y = 0), (x = 10, y = 0) its horizontal lane. I need examples of big lane (500…
Naduxa
  • 55
  • 1
  • 11
-1
votes
1 answer

Triangle Geometry Query

I'm hoping someone can help me out. My trigonometry is a bit rusty! See link below. I know all three coordinates and all three distances. What I want to calculate are the coordinates of the red dot! I'm hoping it might be an easy answer…
Bmil
  • 362
  • 2
  • 13
-1
votes
2 answers

Delete all the points that are far from a segment

I wrote an algorithm inspired by some answers on StackOverflow : it detects points that are quite far from an infinite line. This algorithm is shown below. However, I don't work with infinite lines in my project, but with segments. And the problem,…
JarsOfJam-Scheduler
  • 2,809
  • 3
  • 31
  • 70
-1
votes
2 answers

Given 2 points and a line- do the points intersect the line? : algorithm/pseudocode

A coworker gave me this problem to try out my knowledge: Consider two points, 1 and 2, having coordinates (x1, y1) and (x2, y2), respectively. In the same plane as these two points is a vertical line whose top and bottom are represented by (xTop,…
user7492459
-1
votes
1 answer

R- How to draw a curve that crosses specific points

I m new to stackoverflow, so please forgive if I m not clear enough. I have 2 groups of points each of which represent a different curve: {(100,6.5),(200,6.2),(300,5.7),(400,5.5),(500,4.8)} , {(100,7),(200,6),(300,5.5),(400,5.3),(500,4.5)} I want…
-1
votes
3 answers

Function type error c++

I am creating a class to print a point, compare two points to see if they are equal, and to find the distance between two points using separate methods for each. The method for finding the distance between two points is giving me a type error and I…
rddead
  • 103
  • 10
-1
votes
2 answers

What is the best way to compare two list of complex object in c#

Hello friends I want to create a method that get two list of point (object that I'm created) and return 3 list that include: Points that exist in the first and the second list. Points that exist in the first list and not exist in the second…
Lol
  • 11
  • 1
-1
votes
3 answers

Javascript - Transfer point list to array

I have a list of Vector() objects pointList = [(1688, 25), (1349.75, 25), (1349.75, 395), (1688, 395), (900, 395), (900, 25), (450.25, 25), (450.25, 395), (8, 395), (8, 25)] and I would like to orginize them in an array of array of objects which…
-1
votes
2 answers

Mysql, timestamp and find extreme values

Is it possible in mysql to find extremes values I have table with columns (timestamp, value) and I have to detect when values started to increased and decreased and notice that value. I.e with this datas 2015-05-14 04:40:00, 1000 2015-05-14…
-1
votes
1 answer

How do I use a point class, rational number class, and line class to Solve a system of 2 linear equations?

I am fairly new to computer science and have been trying, unsuccessfully, to use a point class, a line class, and a Rational number class in order to solve a System of linear equations. The code for the System is old and I'm adapting it to work for…
hell2the0
  • 1
  • 1