Questions tagged [points]
A scoring system for games or algorithms. Geometric items should be tagged with coordinates or point.
885
questions
-1
votes
0
answers
20
views
how to change points place on image while we zoom image in flutter?
For example, let's say we have an image and on that image, I have put two points and I want to draw a line between these two points. And when I zoom image I also want to zoom points like google Maps ...
-1
votes
2
answers
24
views
React/React Native Experience Point Counter?
I am trying to make an experience point counter for a project I am working on. I want it to increase by 15 each time the user reaches the "Quiz Completion" page that I have and display the ...
3
votes
0
answers
103
views
Minimize the difference of the distance between points on the line
My problem is as follows:
Given n points on a line segment and a threshold k, pick the points on the line so that would minimize the average difference of the distance between each consecutive point ...
0
votes
4
answers
59
views
Rock Paper Scissors assigning points each round
newbie here! Just starting learning week and a half ago. Creating the rock paper scissors game. The goal is to play 5 rounds against the computer to determine the overall winner. I'm a little stumped ...
0
votes
0
answers
24
views
How to "bring to front" points plotted on in boxplot
As stated, I am trying to "bring to front" the points in the boxplot as shown in the below graph.
current plot
Here is the code I used to create the graph.
ggboxplot(dose2, x = "Group&...
-1
votes
1
answer
39
views
finding an equation of polynom by given point in 3D (python)
Suppose we have a curve which is given by 3D points, for example:
(0.43, 0.55, 32.49), (0.61, 0.77, 31.24), (0.77, 1.01, 29.99), (0.88, 1.23, 28.75), (0.93, 1.41, 27.5), (0.91, 1.51, 26.25), (0.90, 1....
0
votes
2
answers
51
views
How to get the percentage of points or the percentage that needs to get to the next level in Java?
I have a system that "translates" points of a player to a certain level, for example:
If a player has 0-49 points it translates to level 0 and 50-299 points it translates to being at level 1 ...
1
vote
1
answer
51
views
THREE.js Raycasting Points
I'm trying to implement raycasting for the Points object.
The problem is that the raycaster selection doesn't match the pointer position.
I took as reference these 2 examples from three:
...
0
votes
0
answers
49
views
OpenCV find position of points in image
I havent found a good answer for this problem yet. Im trying to find the position of a few points in a image. Most answers use a simple threshold. Although this is creating problems for me as contrast ...
0
votes
1
answer
21
views
WP Learndash plugin, get course points of user from subsite
I have a multisite setup of wordpress. I am using Learndash in subsite(xyz.com) and need to get the course points on my main site(abc.com).
I have a reward system in abc.com. When an end user buy some ...
1
vote
1
answer
94
views
Finding points from one point with certain angle and certain distance python
I want to find red points count below picture. Using python. How can I do that? Using given angle, and distance according to placemark..
Every point has coordinate(latitude,longitude). Placemark also ...
0
votes
0
answers
8
views
How to identify the equation of a point in a curve
I have a curve. X axis potential, y axis current. When I will plot, I will get closed curve. Some part of the curve follow one equation and some part other. How can I identify?
1
vote
0
answers
60
views
How to find a point along a contour path given the distance from a point on the contour?
I have a contour with certain points defined.
I m trying to offset the position of the starting point by a certain distance along the contour like shown below.
Pt A to Pt A'. I have the offset ...
-1
votes
1
answer
39
views
How to find polygon from noisy points in sf package R
I am looking to create a polygon derived from a bunch of noisy points in sf. I currently have many points that roughly make a square (see image below). I would like to create a polygon that ...
0
votes
0
answers
18
views
How can I get the corner points closes to another point
The picture below contains a game map system, where the numbers identify which dedicated server is going to contain what part of the map.
What I'm trying to do is find a way to get points under the ...
0
votes
0
answers
57
views
How can I create equally spaced points along a line in R?
I have a polyline shapefile. I would like to create equally spaced points along a polyline.
Is it possible in R?
0
votes
0
answers
46
views
Calculate distance between current digitized point and closest existing point in QGIS field calculator
I'm more or less a beginner with QGIS, I'am currently using QGIS 3.16 version. I would like to calculate distances (in meters) of all existing points in a certain layer to their respective nearest ...
1
vote
0
answers
22
views
Find nearest line to point by group and Date in R?
I am working with line data and point data that differs by day. The ultimate goal is to find the nearest line segment to each point. However, different lines and points are relevant to different days. ...
0
votes
0
answers
50
views
Java function to have cubic spline curve passing through the given sequence points
I need a Java function that returns a cubic spline curve that passes through the indicated sequence points.
In MatLAB I use the cscvn function but in Java I have not found anything similar. Also, I ...
0
votes
1
answer
51
views
aligning points and box plots on a ggplot with 3 response variables
I am trying to plot a ggplot with 3 explanatory variables. I cannot align the points with their respective box plots. Can somebody help me solve this problem?
This is the code i have tried, all the ...
0
votes
0
answers
36
views
Print Graphics Between Two Points In Assembly (MASM)
I am trying to write a macro in MASM which enables me to display a graphic line from one point to another but the following code i have written just goes x axis and then y axis and not a line between ...
4
votes
1
answer
233
views
how to add IPCC stippling to global map with ggplot2
I need to add IPCC(-style) stippling to a global map as in this post. However I would like to use one of the functions of ggplot2 for doing so.
Here an example of data and plot:
test.csv
df=read.csv(&...
1
vote
0
answers
20
views
code a function if we hadequal points in quiz app
i make quiz app
It displays the winner now if the number of questions expires and counts the points, but I want itin the event of the points being equal to display a message
self.showWinner = ...
0
votes
0
answers
67
views
Algorithms to find shapes among random points
Let's assume we have: A) a large set of random 2D points, and B) a small set of 2D points representing a simple geometric shape of choice, e.g. a triangle (3 x 2D points). I want to perform search ...
0
votes
1
answer
60
views
postgis : select points and polygons of one table inside polygon of another table
I have searched the forum and tried with solutions of the forum but it didnt work.
I have tried to select points and polygons of one table inside a polygon of another table with the following code :
...
0
votes
2
answers
40
views
Calculate missing y between two points
I would like to know how to calculate the missing y coordinate between the two know points. The x position of the point is know only the y position is unknow. How do i calculate the position with the ...
0
votes
1
answer
64
views
How can I detect circles in python with a set of (x, y) points
I have a list of (x,y) points that constitue several circles with different centers, they all have the same diameter (which is known).
I need to detect the number of circles in total (not necessary to ...
1
vote
1
answer
104
views
Point not plotting over a shapefile
I am trying to plot a shapefile with Poland's Powiaty (counties) and a dot where Krakow is. This is the code that I'm using. For some reason, that dot is not appearing in the plot.
This is where I got ...
2
votes
1
answer
153
views
Create a rectangle net/list from 2D Points in python
I have a series of points that are to be sorted into adjacent squares so that a mesh is created.
is there maby anything comparable to the Delaunay triangulation?
Picture from input points in blue and ...
1
vote
1
answer
62
views
openscad- use named variables in polygon points list?
I'm quite new to Openscad and have made a small program to create an instrument box with a sloping front. This now works quite nicely, so I want to "paramaterise" the size of the box & ...
0
votes
1
answer
68
views
Is there a Java method for sorting points?
java.awt.Point[] coordinates = new Main().findPlayers(photo, team, threshold);
I have a function that returns an array of points (coordinates of players).
And I want to sort the players in increasing ...
0
votes
0
answers
214
views
Detect which point is inside of which polygon (Python)
I have a shapefile of points and another shapefile of polygons.
My goal is to check which point is inside which polygon, so that I can change the name of the point with respect to the name of the ...
0
votes
0
answers
159
views
generating a set of equally spaced points in 3d
I have an object which is a point with 3d cordinates:
class point:
def __init__(self, x, y, z):
self.x = x
self.y = y
self.z = z
and a cuboid of the following dimensions
...
0
votes
0
answers
62
views
How can I select points in a point cloud (las file) higher than a surface (tif) in python
I have a point cloud in .las file, with x,y,z and intensity values.
I also have the DTM in .tif format.
My goal Is to select points of the point clouds which have a distance of 10 meters from the ...
0
votes
1
answer
75
views
JFreeChart how to manually add the legend into plot graph
I have used JFreeChart library in java to draw one line with points ie. plot.
The points have two kind of color - green or blue. Below is some sample with different colors.
I would like to display two ...
2
votes
1
answer
23
views
grep Howto extract a link only from a webseite
I was searching a lot, but nothing really helped me to find a solution to my question. I am still learning regex and have some success, but in this case I can't get to the solution I want.
I am ...
0
votes
0
answers
38
views
Plotting points in base R maps
this might be a long shot as I am unable to provide all the relevant data, but maybe there are some general tips on how to solve the following problems:
There are three things I want to resolve:
I ...
0
votes
1
answer
86
views
How to create a python class contains empty list, add points to it, and return cordinates of points as tuple
I need some help in python oop, I want to create an empty list as an instance in a python class, then add a method that appends points in that empty list, and add a string method that returns the ...
0
votes
0
answers
24
views
How to determine the 3D points if the ray intersects the the voxel that is perpendicular to Y axis?
Here the line AB is intersecting the voxel perpendicularly on the Y-axis. How can I determine all the three points (3D points) x.y.z in this manner? Thanks in advance.
0
votes
1
answer
217
views
Color each point in different color Threejs
I have points and color (r, g, b). I need to use one color for one point.
I did this
const vertices = new Float32Array(data.points);
const colors = new Float32Array(data.colors)
geometry....
0
votes
4
answers
224
views
How do I change an element in a nested list?
I am a Python beginner and in need of some advice.
I defined ten variables that all have an X and Y value.
Then I put these variables (which are actually a list) in another list called "pointlist&...
1
vote
1
answer
44
views
How to know the m or M point of path from all of points in svg?(use raphael.js)
I have an svg picture like this, with M and m in the path. I use raphael.js to calculate. I can get all the points by calling Raphael.getTotalLength(path), but how can I know from which point is the ...
1
vote
1
answer
807
views
How to add a null value on a list of <Offsets>? null cant be added because flutter null safety
I'm creating a drawing app using flutter. I've used gesturedetector onpanstart, onpanend, onpanupdate. But I have to close the array of offsets. Because of null safety I am not able to use 'null'. how ...
0
votes
0
answers
60
views
Finding closest point from a dataframe without repetition
I have two dataframes df1 and df2.
I want to find the closest point from df2 corresponding to the points in the df1.
Once a point is selected from df2 corresponding to the point in df1, remove it from ...
1
vote
1
answer
252
views
Calculate distance between points on the screen in Flutter, independent of screen size
I am building an app to track distance between 2 points on a football field.
I know how long a field is in reality, let's say 100 meters for convenience. I want to be able to measure a distance ...
0
votes
1
answer
113
views
sf and networks in R : create an edgelist from distinct linestrings and points sf objects
I've got an sf object of nodes (stops) and an other of linestrings (routes).
# toy example
## nodes
p1 = st_point(c(7, 51))
p2 = st_point(c(7, 52))
p3 = st_point(c(7, 53))
p4 = st_point(c(8, 52))
...
-2
votes
2
answers
569
views
st_intersection between polygons and points
I have two sf objects that I would like to intersect, but I can't.
D_sf has 633 observations and has a POLYGON geometry
Temp_points_sf has 11266 observations and has a POINT geometry.
My aim is to ...
0
votes
2
answers
32
views
Looking for a way to determine how many points are above a certain (nonlinear) line in R
I have a big data frame (df) which contains x/y coordinates and a nonlinear regression line that is somewhere in the middle, see plot below. Many points overlap, that's why I have an extra column $...
1
vote
1
answer
191
views
Split LineString into several LineStrings if distance to next Point is > than a given threshold
I have a shapely Point list:
0 POINT (527644.217 5340266.216)
11 POINT (527644.921 5340266.268)
22 POINT (527645.889 5340266.246)
34 POINT (527646.423 5340266.200)
45 POINT (527646.979 ...
0
votes
0
answers
44
views
How to display woocommerce points using progress bar (wordpress)
Circumstances:
This is woocommerce points code.
Short code [yith_ywpar_points] displays the following result:
<div class="elementor-element elementor-element-c1d0790 elementor-widget elementor-...