QuadShape

Shape
public sealed class QuadShape : Shape
Represents a single convex quad for ray intersections.

Constructors

QuadShape

#
public QuadShape(double ax, double ay, double bx, double by, double cx, double cy, double dx, double dy)
Create a new quad.
ax (double)
ay (double)
bx (double)
by (double)
cx (double)
cy (double)
dx (double)
dy (double)

QuadShape

#
public QuadShape(Point2d a, Point2d b, Point2d c, Point2d d)
Create a new quad.
a (Point2d)
b (Point2d)
c (Point2d)
d (Point2d)

QuadShape

#
public QuadShape(Point3d a, Point3d b, Point3d c, Point3d d)
Create a new quad.
a (Point3d)
b (Point3d)
c (Point3d)
d (Point3d)

QuadShape

#
public QuadShape(PointF a, PointF b, PointF c, PointF d)
Create a new quad.
a (PointF)
b (PointF)
c (PointF)
d (PointF)

Properties

A

#
public Point2d A { get; }
Gets the A corner.

B

#
public Point2d B { get; }
Gets the B corner.

Bounds

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

C

#
public Point2d C { get; }
Gets the C corner.

D

#
public Point2d D { get; }
Gets the D corner.

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