coordinates

Build a 3d surface plot using xyz coordinates with jzy3d

拥有回忆 提交于 2019-12-20 03:22:17
问题 I've been searching for a way to send a list of coord(x,y,z) to jzy3d. But without success. The only way I found is to use a "builder" with a list of "coord3d" and a "tesselator", but it actually doesn't work. I don't realy get the meaning of the Tesselator in fact ? Here is the code I tried : public Chart getChart(){ List<Coord3d> coordinates = new ArrayList<Coord3d>(); for(int i=0; i<200; i++) coordinates.add( new Coord3d(5, 10, 15) ); Tesselator tesselator = new Tesselator() { @Override

Calculate the mid point of latitude and longitude co-ordinates

只愿长相守 提交于 2019-12-19 21:48:56
问题 Does anyone know the best way to go about getting the mid-point of a pair of latitude and longitude points? I mm using d3.js to draw points on a map and need to draw a curved line between two points, so I need to create a mid point to draw a curve in the lines. Please see image below for a better understanding of what I am trying to do: 回答1: Apologies for the long script - it just seemed fun to draw stuff :-). I've marked off sections that are not required // your latitude / longitude var co2

How to get cardinal mouse direction from mouse coordinates

家住魔仙堡 提交于 2019-12-19 18:23:30
问题 is it possible to get the mouse direction (Left, Right, Up, Down) based on mouse last position and current position? I have written the code to calculate the angle between two vectors but I am not sure if it is right. Can someone please point me to the right direction? public enum Direction { Left = 0, Right = 1, Down = 2, Up = 3 } private int lastX; private int lastY; private Direction direction; private void Form1_MouseDown(object sender, MouseEventArgs e) { lastX = e.X; lastY = e.Y; }

Coordinate Algorithm - Rotate around the center

雨燕双飞 提交于 2019-12-19 11:23:08
问题 By looking at this image I think you will understand my problem pretty well: (image removed - url no longer valid, returns advertising now) So basically I want a function that takes an object as parameter and gives this object the correct coordinates based on how many objects I've added before. Let's say I would add all these objects to an array: objectArray[] Each time I add a new object: objectArray.add(object) The object.x and object.y coordinates will be set based on some algorithm:

Get edge co-ordinates after edge detection (Canny)

佐手、 提交于 2019-12-19 09:59:29
问题 I have been working with OpenCV for a fairly short time, and have performed Canny Edge Detection on an image, and also performed dilation after that to further separate the object (in my case a square) from the background. My problem, now is to identify graspable regions in 2D using an algorithm that requires me to handle co-ordinates of the points in those edges. Is there any way I can use OpenCV to get the co-ordinates of the corners so I can find the equation of the lines forming the edge

Get edge co-ordinates after edge detection (Canny)

陌路散爱 提交于 2019-12-19 09:59:08
问题 I have been working with OpenCV for a fairly short time, and have performed Canny Edge Detection on an image, and also performed dilation after that to further separate the object (in my case a square) from the background. My problem, now is to identify graspable regions in 2D using an algorithm that requires me to handle co-ordinates of the points in those edges. Is there any way I can use OpenCV to get the co-ordinates of the corners so I can find the equation of the lines forming the edge

Tkinter get mouse coordinates on click and use them as variables

我的梦境 提交于 2019-12-19 08:15:50
问题 I am completely new to Python. Therefore don't get too mad at me, because I am sure that there are basic things that I am missing. Here is my problem: I am trying to extract mouse-click coordinates from an image and use those coordinates as variables. The code allows to import and image, from which I want to extract the coordinates. Some prompts ask the user about size and extent of the diagram, after which I would like to set up a coordinate grid by clicking the origin, and the end point on

Tkinter get mouse coordinates on click and use them as variables

a 夏天 提交于 2019-12-19 08:15:11
问题 I am completely new to Python. Therefore don't get too mad at me, because I am sure that there are basic things that I am missing. Here is my problem: I am trying to extract mouse-click coordinates from an image and use those coordinates as variables. The code allows to import and image, from which I want to extract the coordinates. Some prompts ask the user about size and extent of the diagram, after which I would like to set up a coordinate grid by clicking the origin, and the end point on

matplotlib coordinates format [duplicate]

心不动则不痛 提交于 2019-12-19 07:08:06
问题 This question already has answers here : Interactive pixel information of an image in Python? (5 answers) Closed 4 years ago . I have simple plot like this: matplotlib.pyplot as plt pt_no = [1,2,3] coord_x = [6035763.111, 6035765.251, 6035762.801] coord_y = [6439524.100, 6439522.251, 6439518.298] fig, ax = plt.subplots() ax.scatter(coord_y, coord_x, marker='x') ax.axes.get_xaxis().set_visible(False) ax.axes.get_yaxis().set_visible(False) for i, txt in enumerate(pt_no): ax.annotate(txt, (coord

Geoalgorithm for finding coordinates of point from a known location by distance and bearing

那年仲夏 提交于 2019-12-19 04:11:30
问题 I'd like to use Google maps static API to display a map with a path overlay indicating a boundary. AFAICT the static API doesn't support polygons, so I intend to circumvent this by drawing the boundary using paths. To do this I need to determine the points to draw the straight lines (paths) between; so I'd like an algorithm that returns the geographic location (i.e. WGS84 coordinates) a given bearing and distance from a known point. Can anyone point me to such an algorithm. Preferably in C#,