Draw straight-line between two points in BlackBerry maps - blackberry

How do I draw a straight-line between 2 points in BlackBerry maps? I've found how to draw a route between 2 points. I want draw a line like in the following picture, where 4 points are used.

Related

ARKit Draw 3D Curved Line

I am trying to draw a curved 3D line (doesn't matter if it made by a cylinder, rectangle, etc) on a ARSCNView (Renders using SceneKit).
I currently have something like this which renders lines using SCNCylinder but not sure how to curve them.
I tried using SCNShape from UIBezierPath to no success. Because I already have 3d point points not 2D points and using this method I can't have different Y axis (aka up) in ARKit.

Creating triangular UIRegions

I need to separate the screen into regions that look like this (separated by black lines):
The documentation says Most regions are rectangular or elliptical in shape, but you can use the methods of this class to create more complex shapes by adding, subtracting, and intersecting other regions. I can't figure out how to create these.
For context I am trying to replicate the StickyCorners: Using UIFieldBehavior and other UIDynamicBehaviors demo, but adding 4 more sticky points, 1 at each midpoint (indicated by red circles).

iOS GoogleMaps area accuracy and Polygon drawing

I am trying to mark location points while walking around small area say my house. How accurate it would be to draw perimeter i.e. Polygon.
How accurate the distance would be.
Thirdly can we draw curved path
Any suggestion with experience will be highly appreciated.
Thank you
I can't comment on the accuracy of the polygon area, but there's a lot of questions about it when searched (eg. this Stackoverflow question.
For drawing curved path, you can use the GMSPolyline with geodesic option set to YES.
When YES, render this polyline edge as a geodesic. Geodesic segments follow the shortest path along the Earth's surface and may appear as curved lines on a map with a Mercator projection. Non-geodesic segments are drawn as straight lines on the map. Defaults to NO.

Openlayers2: how i can draw path with more than 2 points

My problem is what i can draw itinerary between multi-points in openlayers 2.i have more than 2 points.
how i can draw the path of car in map with openlayers2.

How to do image pattern matching like triangle, circle matching in iOS?

Suppose one image like circle image is there. Then I want draw circle over that image, then check two image is same or not in iOS. I tried image matching using CGPoint, but for circle and triangle what to do.
For matching two triangles you may have two choices:
define two areas in each traingle, then calculate areas ratio, they must have the same ratio if they are matched
try to detect three points of each triangle, then calculate the barycentre coordinates
they are invarinat
For circle, if you could easily to represent each circle by a triangle which its points cross that circle, you can find the invariance by the previous steps.

Resources