B4A Code Snippet Geo-Zone Determination (Point in Polygon) - ilan (first post)    Jun 2, 2016   tags: Geofence i think i need to calculate the centroid of the polygon
http://stackoverflow.com/questions/2792443/finding-the-centroid-of-a-polygon
https://en.wikipedia.org/wiki/Centroid#Centroid_of_polygon... B4A Question area of polygon - RB Smissaert    Jun 5, 2019 ("FindCentroid, polygon_area: " & polygon_area)
X = X / 6 / polygon_area
Y = Y / 6...Needed a way to get the centre of a polygon, defined by a list of osmdroid_geopoints.
Part of this algorithm is to get the area of the polygon. All this works fine and I get the
centre of the polygon (defined as making the polygon balance on a pin if put at the centre)
Having this area I would like... B4A Question Is it possible to have label/text on Google Map circle and Polygons? - TILogistic (first post)    Jan 23, 2021 Polygon: must calculate the centroid of the points that make up the Polygon: https://www.b4x.com/android/forum/threads/how-find-center-of-polygon.121972/#post-762264 search: https://www.b4x.com/android/forum/pages/results/?query=centroid+... B4A Question Place Picker in Google Map - TILogistic (first post)    May 4, 2021   (1 reaction) /results/?query=centroide+polygon...(GoogleMapsExtras1.GetProjection(GoogleMap1).GetVisibleRegion.NearLeft) Calculate the centroid (Latitude and... B4J Library jCanvasExt Extends Canvas methods - Informatix (first post)    Nov 27, 2017   (2 reactions) Hello Klaus! To find the Centroid of this figure? regards... Try SimpleGameEngine. It contains all the functions of jCanvasExt and a function able to compute the centroid of a polygon (class sgePolygon, function Centroid) among many other functions.... Games Useful Formulas - ilan (first post)    Apr 24, 2017   (1 reaction) but a good and importent formula would be to get the centroid of an polygon
https://en.m.wikipedia.org/wiki/Centroid
If 2 polygons intersect is ofcourse a great feature to have. I wont use it for collisions... B4A Question How find center of polygon - keirS (first post)    Sep 7, 2020 results.
The centroid of a concave polygon can be outside the bounds of the polygon in which case... it with a couple of simple cases - it looks okay.
Note also that if the polygon is self-intersecting... B4A Class [B4X] GPSPolyMap - check if GPS location is inside a polygon - Biswajit    May 11, 2020   (19 reactions) With this class, you can check if the GPS location coordinate is inside a polygon. You can use this class to check whether the user is inside a building, shopping mall or any custom shape. This class is only for B4A and B4I. Here is how can you get the coordinates of an establishment (school.... And at last, add the starting point to close the polygon. Remember to add the points in the correct... the first point at last to close the polygon Private gpm as GPSPolyMap gpm.Initialize(PolyPoints) Sub... B4A Code Snippet [B4X] [XUI] Faster* DrawPolygon Method - Erel    Jun 24, 2018   (5 reactions) You can draw polygons with B4XCanvas.DrawPath. The following code calls B4XCanvas.DrawPath... Page1_Click DrawPolygon(cvs, Array (Array As Int(100dip, 100dip), Array As Int(200dip, 0...)), _ xui.Color_Red, True, 2dip) cvs.Invalidate End Sub Sub DrawPolygon (cvs1 As B4XCanvas, Points....RunMethod("setFill", Array(paint)) jcvs.RunMethod("fillPolygon", Array(xpoints...("strokePolygon", Array(xpoints, ypoints, Points.Size)) End If jcvs.RunMethod("restore", Null... B4A Question Solves a formulation of n-D space trilateration problem using a nonlinear least squares optimizer. Input: positions, distances Output: centroid with - mike1967 (first post)    Jan 28, 2024
Yeah, I was super-impressed by this result, which is ten-times better than anything I ever got when... Page: 1   2   3   |