//
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
//
namespace ImageSharp.Drawing
{
///
/// Represents a something that has knowledge about its outline.
///
public abstract class Path
{
///
/// Gets the maximum number of intersections to could be returned.
///
///
/// The maximum intersections.
///
public abstract int MaxIntersections { get; }
///
/// Gets the bounds.
///
///
/// The bounds.
///
public abstract Rectangle Bounds { get; }
///
/// Gets the point information for the specified x and y location.
///
/// The x.
/// The y.
/// Information about the point in relation to a drawable edge
public abstract PointInfo GetPointInfo(int x, int y);
///
/// Scans the X axis for intersections.
///
/// The x.
/// The buffer.
/// The length.
/// The offset.
/// The number of intersections found.
public abstract int ScanX(int x, float[] buffer, int length, int offset);
///
/// Scans the Y axis for intersections.
///
/// The position along the y axis to find intersections.
/// The buffer.
/// The length.
/// The offset.
/// The number of intersections found.
public abstract int ScanY(int y, float[] buffer, int length, int offset);
}
}