Questions tagged [point]

A point is a fundamental geometry entity.

point
Filter by
Sorted by
Tagged with
0 votes
1 answer
63 views

fabric.js reset polygon bounding box after a point is moved

When I move a polyon's point (node) with the mouse, the bounding box does not update to enclose all new points. I've tries every matrix, setCoords(), etc. on this site for days. Fabric's own demo is ...
0 votes
4 answers
5k views

How to get mouse position in float or double with exact resolution?

I need to take the mouse click position in float or double, how can I do that?In mouse listener, I take the point like this, e.getPoint(); but Point object's x and y values are integer, I need ...
0 votes
1 answer
234 views

How to put a point on an elliptic curve using javascript

So i m trying to send a message from server to client and i m trying to put that message on the elliptic curve as a point and then make the addition of that point to itself K times ! i couldn't find a ...
0 votes
1 answer
2k views

Creating a class that represents 2D-points

Implement a class that represents 2D-points (i.e., a point that has an x- and a y- position) Implement the following methods: distanceFromOrigin(): calculates and returns the distance to Point2D(0,0). ...
15 votes
3 answers
10k views

Find specific point between 2 points - three.js

How can I find a point ( C (x,y,z) ) between 2 points ( A(x,y,z) , B(x,y,z) ) in a thgree.js scene? I know that with this: mid point I can find the middle point between them, but I don't want the ...
0 votes
1 answer
34 views

integrate two dataframes in ggplot2

I would like to add some points to a geom_violin in ggplot2. Below an overview of how the figure is structured: Essentially, for each one of the eight populations there should be an additional extra ...
0 votes
1 answer
18 views

FlxRect.getRotatedBounds not getting hitboxes correctly?

I'm making an Undertale damage system but I just can't get it right. What is wrong in this code? blaster and soul are FlxSprites. var point1:FlxPoint = FlxPoint.weak(blaster.x, blaster.y + 104 * ...
46 votes
10 answers
103k views

Distance between point and a line (from two points)

I'm using Python+Numpy (can maybe also use Scipy) and have three 2D points (P1, P2, P3); I am trying to get the distance from P3 perpendicular to a line drawn between P1 and P2. Let P1=(x1,y1), P2=...
0 votes
3 answers
55 views

Having different shapes of points for each line and making them shown on the legends

My goal is to make the graph look something like this My Goal. The problem I'm having is that ggplot won't let me use more than 6 kinds of shapes for the points, so my graph looks something like this ...
-1 votes
0 answers
19 views

WordPress database error Illegal mix of collations utf8mb3_general_ci,IMPLICIT and utf8mb4_unicode_520_ci,COERCIBLE

WordPress database error Illegal mix of collations (utf8mb3_general_ci,IMPLICIT) and (utf8mb4_unicode_520_ci,COERCIBLE) for operation 'like' for query SELECT SQL_CALC_FOUND_ROWS shop_posts.ID FROM ...
0 votes
0 answers
15 views

How to generate lines with specific direction from points

I have a list of points, spaced roughly 2.5 meters apart. Some points are closer or farther from each other than this distance. I want to create lines in a northwest-southeast direction (as picture), ...
0 votes
0 answers
13 views

Chart.js coloring the shape in a chart

I have a chart I created with Chart.js. In this chart, I have four points and these points are connected and a quadrilateral is obtained and the inside is colored green. But in this way, the y-axis ...
0 votes
2 answers
37 views

Chart. js shape coloring

I have a chart I created with Chart.js. In this chart, I have four points and these points are connected and a quadrilateral is obtained and the inside is colored green. But in this way, the y-axis ...
0 votes
0 answers
18 views

How to extract reflectance values from points within a many image tiles to build a SVM model that can classify each tile using a fields classes

I would like to run python code in google colab that loops through each tile and extracts the reflectance values from the points within each tile to build a SVM model. Once the model is trained using ...
3 votes
1 answer
625 views

How to declare a constant TPoint?

Good morning, I am trying to declare constant TPoint in Delphi, how do you do that ? None of the following works // ... const POS_A : Tpoint = (3,3); const POS_B : Tpoint = Point(3,10); const POS_C :...
0 votes
0 answers
37 views

How do I add the fifth point to chart.js?

I have a chart that I created with chart.js and I added four points. I obtained a quadrilateral with these added points. When I want to add a fifth point, I want to get a pentagon instead of this ...
-1 votes
3 answers
14k views

Find minimum distance between points

I have a set of points (x,y). i need to return two points with minimal distance. I use this: http://www.cs.ucsb.edu/~suri/cs235/ClosestPair.pdf but , i dont really understand how the algo is ...
0 votes
1 answer
278 views

How do I rotate a point on the surface of a sphere given 3 degrees of rotation?

I have a point on a sphere that needs to be rotated. I have 3 different degrees of rotation (roll, pitch, yaw). Are there any formulas I could use to calculate where the point would end up after ...
0 votes
2 answers
60 views

plot numbers on a map from an sf object

I am trying to plot a map with a number (wind velocity) instead of a symbol in each point with data, something like which I produced with a GIS app The thing is I have the plotted numbers in an sf ...
0 votes
0 answers
38 views

I need help covering the edge cases of a ray casting algorithm on a simple 2d array

Given a 2D array in which there is a polygon represented by '*' that touches all the edges, what is the best way to determine whether a point is inside the polygon or not? The coordinates of each ...
3 votes
5 answers
8k views

How to find closest point (point being (x,y), in a list of different points) to a given point?

Currently I have a random point being generated from Random. I am trying to check if the given random point is too close to any other existing points in the plane, if it is far enough away from ALL ...
0 votes
0 answers
16 views

Overlay in Python is not working when I try to combine two plots

When I try to combine two plots by using * in Python, I don't get the correct plot. I only get a single point, but I am supposed to get points and connections between them. This is my code: import ...
0 votes
4 answers
2k views

Split Polygon into Small Polygons by contain 1 point each

I am not sure if this algorithm exists, much appreciated if someone can provide me the just the Algorithm's name, then I can Google it up. Basically let's say I have N Points within a polygon (both ...
0 votes
0 answers
27 views

Finding a 90 degree angle in robodk path and creating two 90 degree vectors at found point

I have a xyzijk list of points and I want to search the list for points that have angle of 90 degrees to next and previous point using a point as a corner. How can I find P1 from that list and create ...
-1 votes
1 answer
25 views

vuforia area target point clound

i have a problem with area target. Is there any chance to get point cloud or mesh from area target? find point cloud from scanned area target I'm waiting for any help. I use the vuforia area app for ...
0 votes
1 answer
32 views

QGIS - Attempting to Locate a Single Line Layer within Thousands of Point Layers

I am trying to merge approximately 2000 Point layers into a single layer, but I keep getting the error upon merge that there is one or possibly two line layers in the selection preventing the merge. ...
0 votes
0 answers
35 views

python loyalt point expire date calculation

for below dataset i need to calcute email based points expire date.Normally expire date is create+366 days but If customer makes another purchase within 365 days previouse expire dates shoul be ...
2 votes
1 answer
104 views

Problem in estimating the confidence intervals of a log-gaussian cox process with kppm on spatstat on R

I am fitting a log gaussian cox point process with the kppm function on R. spatstat for point patterns. It is supposed to give me the intensity coefficients prediction and the confidence intervals ...
0 votes
1 answer
62 views

PointNet++ model;I am encountering an assertion issue when modifying the categories for the segmentation model

I previously had 13 categories for this model, and now I have changed it to 17 categories for segmentation. I have updated both the 'num_classes' and the weights to correspond to the 17 categories. I ...
88 votes
11 answers
81k views

Mouse / Canvas X, Y to Three.js World X, Y, Z

I've searched around for an example that matches my use case but cannot find one. I'm trying to convert screen mouse co-ordinates into 3D world co-ordinates taking into account the camera. Solutions ...
0 votes
0 answers
8 views

How to connect Spatialpoints in leaflet with lines?

I have a map in leaflet with spatialpoints. The points represent the trajectory of a fish, so I would like to convert the points into a line instead. But I cannot figure out how to do it (I'm new to R)...
0 votes
1 answer
40 views

Qml unexpected behaviour

In the following code a point can be removed from listmodel and in the next line it says ReferenceError : pthModel is not defined. Could you help me please? import QtQuick import QtQuick.Shapes 2.15 ...
2 votes
3 answers
4k views

SQL Server - Linestring from Points Geometry

Is there an easy way to create a LineString out of a column of Points in SQL? For example I have a query: SELECT Geom FROM api.Table WHERE WellId = 'XYZ1234' ORDER BY MeasuredDepth ASC; that returns ...
2 votes
1 answer
101 views

How to check if a point is inside a square using bivrp::is_point_inside

I am trying bivrp::is_point_inside to check if a point is inside a square, but no matter what I try, I always get FALSE, even in the most obvious cases... What am I doing wrong?? My code: polyg=data....
0 votes
0 answers
56 views

Why won't my R script plot points when using the "points" function?

I'm trying to create a vertical profile based on data I have collected and entered into R. When I use the points(x,y) function, the points aren't showing up on my plot and I'm not sure what to do ...
1 vote
2 answers
1k views

Best polygon fitting into points

I'm looking for an algorithm to find a polygon that can represent a set of points in 2D space. Specifically, if given a set of points like this It should ideally produce something similar to this: (...
0 votes
2 answers
2k views

How to get the average number of data points?

Here is my data file : 12100 4592 14400 5000 16900 6443 12100 4479 14400 5393 16900 5969 12100 4605 14400 5353 16900 6268 I would like to have the ...
0 votes
0 answers
17 views

Detect "Crater" Jumps In Non-Linear Lidar Distance Data

Graph of points polar coordinate radius value I'm trying to detect groups of points in this stream of lidar data. It's 360 points per revolution and the graph is one revolution. I have a list of ...
0 votes
0 answers
55 views

add Point type to MySQL using TypeORM

I have a "coordinte" column in my database in MySQL that the type of it is point, and I want to use TypeORM in order to add content to this column in MySQL. I tried option 1 : @Column({type: ...
-3 votes
1 answer
510 views

How to use a point to describe the trail of an object with package matplotlib

In the while loop,the command plt.plot(x,y,'*') paints the trail of an object.SO there are many points painted in the axes. But I just want a moving point to describe the trail. Details are in the &...
3 votes
3 answers
76k views

An example of the use of the Point class?

I'm trying to use Point(double x, double y), getX(), getY() to create a point and return it with toString(). I can't find an example of how to do this anywhere. public class Point { private ...
137 votes
12 answers
231k views

Convert Pixels to Points

I have a need to convert Pixels to Points in C#. I've seen some complicated explanations about the topic, but can't seem to locate a simple formula. Let's assume a standard 96dpi, how do I calulate ...
0 votes
1 answer
168 views

Display leaflet map coordinates in Django template from WKB POINT field in PostgreSQL database

I'm new to all things GEO. I have a WKB POINT field in a PostgreSQL database that stores locations. I also have a leaflet map on my Django template with hard coded lat and long added, which shows a ...
0 votes
1 answer
267 views

Plotting a point (4x1) matrix in 3d Plot on matlab

How can I plot the New_P in 3D I'm using robotic toolbox peter corke I should use trplot() function but it's not working it shows that it takes 3x3 or 4x4 any way to plot it on 3d P = transpose([2,3,...
1 vote
1 answer
800 views

moving pivot point of an object in unity

This is the object I am trying to move the pivot of: I am currently trying to move the pivot point of this object to the center, since i need it to be centered there for a script i am making, does ...
1 vote
1 answer
58 views

How to draw a point on an ellipse from general form

The following program draws a rotated ellipse from an equation given in general form: import matplotlib as mpl import matplotlib.pyplot as plt x_range = np.linspace(-6, +6) y_range = np.linspace(-10, ...
0 votes
1 answer
242 views

ggplot: geom_dotplot, center the dots over multiple lines

I have the following dotplot: I want to achieve two things: Instead of having the dots in a single row per facet, I want the dots to be lined across two rows (with 5 dots in the first row, and a ...
0 votes
0 answers
25 views

Python/Grasshopper Question--Getting circle to follow attractor point

I am trying to write a code for a circle that follows the attractor point I already coded. Any suggestions? I have tried forimage shows the code so far as well as a rhino screenshot a while, but I can ...
1 vote
3 answers
3k views

finding points that reside on a line between 2 points, in accurate segments, python

I have 2 points, (x0,y0) (x1,y1) which form a line L. I found the slope M. Now I want to find 3 points between these 2 points that reside on L, that is between them in an accurate distance, meaning ...
-1 votes
3 answers
57 views

NameError: name 'distancepoint' is not defined

import math class point: def __init__(self,p1,p2): self.p1 = p1 self.p2 = p2 def distancepoint(self): x1,y1 = self.p1 x2,y2 = self.p2 distance = math....

1
2 3 4 5
58