DiscShape

Shape
public sealed class DiscShape : Shape
Represents a circular disc for ray intersections.

Constructors

DiscShape

#
public DiscShape(double x, double y, double r)
Create a new disc.
x (double)
y (double)
r (double)

DiscShape

#
public DiscShape(Point2d a, double radius)
Create a new disc.
a (Point2d)
radius (double)

DiscShape

#
public DiscShape(PointF centre, double radius)
Create a new disc.
centre (PointF)
radius (double)

Properties

Bounds

#
public override Box Bounds { get; }
Gets the bounding box for this shape.
Shape.Bounds

Centre

#
public Point2d Centre { get; }
Gets the centre of the disc.

Radius

#
public double Radius { get; }
Gets the radius of the disc.

Methods

IsCoincident

#
public override bool IsCoincident(double x, double y)
Test whether a specific coordinate is coincident with this obstacle.
x (double)
y (double)
True if point is coincident.

Overlap

#
public override Overlap Overlap(Box box)
Determine the overlap between this shape and a box.
box (Box)Box.
Overlap topology.
Shape.Overlap