Class SKGeometry
Provides geometry utility methods for creating paths, calculating polygon properties, and interpolating between paths.
public static class SKGeometry
- Inheritance
-
SKGeometry
- Inherited Members
Fields
Methods
- Area(IList<SKPoint>)
Calculates the signed area of a polygon defined by a list of points using the shoelace formula.
- CirclePoint(float, float)
Calculates a point on a circle with the given radius at the specified angle.
- CreateInterpolation(SKPath, SKPath, float)
Creates a new SKPath that is an interpolation between two paths at the given position.
- CreateRectanglePath(float, float, SKPathDirection)
Creates a rectangle path centered at the origin with the specified dimensions.
- CreateRegularPolygonPath(float, int, bool, SKPathDirection)
Creates a regular polygon path inscribed in a circle of the specified radius, centered at the origin.
- CreateRegularStarPath(float, float, int, SKPathDirection)
Creates a regular star path centered at the origin with alternating outer and inner vertices.
- CreateSquarePath(float, SKPathDirection)
Creates a square path centered at the origin with the specified side length.
- CreateTrianglePath(float, SKPathDirection)
Creates a regular triangle (equilateral) path inscribed in a circle of the specified radius, centered at the origin.
- CreateTrianglePath(float, float, SKPathDirection)
Creates a triangle path centered at the origin with the specified bounding width and height.
- Perimeter(IList<SKPoint>)
Calculates the perimeter of a polygon defined by a list of points.
- PointAlong(SKPoint, SKPoint, float)
Calculates a point at a given percentage along the line segment from
atob.