TriShape

Shape
public sealed class TriShape : Shape
Represents a single triangle for ray intersections.

Constructors

TriShape

#
public TriShape(double ax, double ay, double bx, double by, double cx, double cy)
Create a new triangle.
ax (double)
ay (double)
bx (double)
by (double)
cx (double)
cy (double)

TriShape

#
public TriShape(Point2d a, Point2d b, Point2d c)
Create a new triangle.
a (Point2d)
b (Point2d)
c (Point2d)

TriShape

#
public TriShape(Point3d a, Point3d b, Point3d c)
Create a new triangle.
a (Point3d)
b (Point3d)
c (Point3d)

TriShape

#
public TriShape(PointF a, PointF b, PointF c)
Create a new triangle.
a (PointF)
b (PointF)
c (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.

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