DeltaArea class

Constructors

DeltaArea()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

calculateCircleArea(double radius) double
To calculate the area of a circle, you can use the following formula:
calculateDistance(double lat1, double lon1, double lat2, double lon2) double
Calculate distance using Haversine formula
calculateEquilateralTriangleArea(double sideLength) double
To calculate the area of an equilateral triangle, you can use the following formula:
calculateRectangleArea(double length, double width) double
To calculate the area of a rectangle, you can use the following formula:
calculateRightAngleTriangleArea(double base, double height) double
The area of a right-angled triangle can be calculated using the following formula:
calculateSquareArea(double sideLength) double
To calculate the area of a square, you can use the following formula:
calculateTriangleArea(double base, double height) double
To calculate the area of a triangle, you can use the following formula:
calculateZigzagArea(List<Point<double>> vertices) double
Finding the area of a zigzag shape (polygon) defined by its coordinates points can be achieved using the shoelace formula or by breaking the shape into triangles and summing their areas. Here, I'll explain how to use the shoelace formula, which works for any simple polygon (convex or concave). You'll need to provide the vertices of the zigzag shape in order.
circleCoordinates(DeltaCoordinate center, double radius, int numPoints) List<DeltaCoordinate>
You can use simple trigonometric calculations. You'll need to specify the radius of the circle, the number of points you want on the circle, and the center point coordinates.
findDisplacement({required DeltaCoordinate from, required DeltaCoordinate to}) double
In KM
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited