Android examples for java.lang:Math Geometry

Click the following links for the tutorial for java.lang and Math Geometry.

- get Distance from two points on the map
- calculate Mid Point for PointF
- calculate Quad Point for PointF
- complete Primary Diagonal Line from Point
- complete Vertical Line from two Point
- Find the point on the line from a given fraction from a point
- Extend a given line segment to a given length and holding the first point of the line as fixed.
- return -1 if point is on left, 1 if on right
- Rotates a Line2D object around a Point2D object.
- Check if two points are on the same side of a given line.
- subtract Point
- divide Point
- subtract PointF
- Finds the distance between point c and a line segment from a to b.
- is Point inside RectF
- is Point In Circle
- Homogenize a point (divide by its last element)
- Calculates great-circle distance between two points on earth using the Haversine formula
- get Square Distance Between Points
- Calculate angle for two Points
- Get middle point from MotionEvent
- is Point In Rectangle
- is Point Inside Polygon
- Returns the squared distance between a point and an (x,y) coordinate.
- get Symmetry Point
- Line angle from two Point
- Indicates whether a point is within a rectangle or not.
- Checks if two lines are parallel
- Removes unnecessary vertices from a line strip.
- distance To Line Segment
- Compute the intersection between two line segments, or two lines of infinite length.
- Return the slope of a line
- Check if two line segments intersects.
- Checks if a line is vertical.
- Translate (move) a Line2D object on the X and Y axes.
- circle Intersects Line
- get Line Slope
- get Line Degrees
- draw Multi Line Text on Canvas
- get Multi Line Text Bounds
- get Polygon Vertexes
- Validates the birth date by checking if a) the preferred date is before the current date or b) the preferred date is before 1916 and correcting it if needed.
- Checks whether two RectF have the same aspect ratio.
- Computes the aspect ratio of a given rect.
- Normalize the angle to the range 0 <= value < 360.