points

Getting All x and y coordinates from a motion event in android

一个人想着一个人 提交于 2019-12-13 16:46:15
问题 I'm currently working on my own basic drawing app. So far, my app is working well but I noticed that my motion event doesn't seem to get all the X and Y axis points that are touched. When I move my finger across the screen, there is noticeable spaces between the circles. Only when I move my finger slowly does it capture all the points. Is there a way I can grab all the points or is there a way i can optimize it to be able to handle all the points? Here's how I'm doing it: setOnTouchListener

Finding the nearest distances between a vector of points and a polygon in R

孤街醉人 提交于 2019-12-13 16:16:18
问题 I have a data frame of lat/long coordinates and a polygon, which represents a coastline. I am trying to find the distance between each point and the nearest coastline feature. I would like to end up with an output data frame that includes columns for my original lat/long values and a new distance column. I have attempted to use the gDistance function after reading answers to similar questions online, but I think that I am missing a few steps and am having trouble figuring it out. At present,

Flash AS2 Quiz with individual points for each answer

廉价感情. 提交于 2019-12-13 07:25:46
问题 I'm making a quiz in Actionscript 2.0. The quiz has 8 questions. Each question has four answers and each answer gives different points. On every frame their is two questions to answer and then move on to the next two and so on. My problem is that I need to assign each answer with points that in the end will be calculated and depending on the number of points send the user to different messages (frames). My code so far is as follows: // create an array of all nav buttons in group var groupinfo

Determining Vector points on a circle [closed]

家住魔仙堡 提交于 2019-12-11 18:18:45
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I have a problem it is like trig and pre calc. We are given vector points for OA which is (6 0) and vector OB (-6 0) and OC (5 root11) and they are all points on a circle with a radius of 6. How exactly do you determine or show that these points lie on the circle? 回答1: For any three points which are not mutually

Is the Fibonacci lattice the very best way to evenly distribute N points on a sphere? So far it seems that it is the best

狂风中的少年 提交于 2019-12-11 13:48:15
问题 Over in the thread "Evenly distributing n points on a sphere" this topic is touched upon: Evenly distributing n points on a sphere. But what I would like to know is: "Is the Fibonacci lattice the very best way to evenly distribute N points on a sphere? So far it seems that it is the best. Does anyone know of a better method?" I have a Ph.D. in physics and may have an application for some of this research in physics. I came across this wonderful paper: http://arxiv.org/pdf/0912.4540.pdf

Win 10 Excel 2016 Unexplained PixelsToPoints coefficient to position UserForm

浪子不回头ぞ 提交于 2019-12-11 05:07:34
问题 Preambule When trying to position a UserForm at a particular Pixel position (stored in a POINTAPI Type structure), one must convert the Pixel coordinates to Point coordinates to be able to set the UserForm.Left and UserForm.Top VBA properties. Let's call this coefficient K. From my tests, I came to understand that in my case, GetWindowRect and the VBA positioning properties of a UserForm ( Left , Top , Width , Height ) includes the shadows around the window (of class "ThunderDFrame")

Draw points and lines in gnuplot

≯℡__Kan透↙ 提交于 2019-12-11 04:23:59
问题 How is it possible with gnuplot to plot both isolated points and lines for the same input file? I mean, once I have a file data.dat of this kind that defines two lines 1-2 and 3-4 x1 y1 x2 y2 x3 y3 x4 y4 I can plot the lines with $> plot 'data.dat' w lp but if I want to also add some isolated points to be displayed with gnuplot I would like to add to my data.dat file the following x1 y1 x2 y2 x3 y3 x4 y4 x5 y5 x6 y6 x7 y7 obviously the points 5,6,7 are treated by gnuplot as points of a line.

Creating random polygons within a set shapefiles boundary in R

本小妞迷上赌 提交于 2019-12-10 21:36:15
问题 I have a shapefile which is the national boundary line of Chile. If possible, I would like to randomly generate e.g. 1000 polygons within this area. I'm wondering what the best way would be to go about this in R? I thought maybe, loading the shapefile using the 'shapefiles' package, then creating a point dataset using something available in 'spatstat'. Then I could create circular polygons based around these points... This is mostly hypothetical and I don't know if its possible. I have some

How to calculate centroid of x,y coordinates in python

梦想的初衷 提交于 2019-12-10 19:52:23
问题 I have got a lot of x,y coordinates which I have clustered based on the distance between them. Now I would like to calculate a centroid measure for each cluster of x,y coordinates. Is there a way to do this? My coordinates are in the format: coordinates_cluster = [[x1,x2,x3,...],[y1,y2,y3,...]] Each cluster has a minimum length of three points, and all points can have both negative and positive x and y values. I hope that someone can help me. Best, Martin (I am using python 2.7 with canopy 1

matlab: how to use an array for coloring a plot

孤街浪徒 提交于 2019-12-10 10:59:53
问题 I have a set of 3d coordinates in 3 arrays X , Y , Z , and the temperature T at each point. I want to plot the points as a point cloud, such that each point will have a color according to it's temperature. Something similar to how you can specify colors in trisurf . How do I do that? 回答1: You can use SCATTER3 for that: scatter3(X,Y,Z,12,T); 来源: https://stackoverflow.com/questions/6570563/matlab-how-to-use-an-array-for-coloring-a-plot