TriangleF

References
public readonly struct TriangleF
Represents a triangular slab with a thickness.

Constructors

TriangleF

#
Create a new triangle.
public TriangleF(
PointF
base,
Base point of triangle.
size,
Size or edge length of triangle.
thickness,
Slab thickness.
corners
Radii of triangle corners.
)

Properties

ApexPath

#
Gets the graphics path for the apex face.
public GraphicsPath ApexPath { get; }

Base

#
Gets the base point for the triangle (the middle of the bottom edge).
public PointF Base { get; }

Bounds

#
Gets the bounds for the entire triangle.
public RectangleF Bounds { get; }

Corners

#
Gets the corner radii of the triangle.
public float Corners { get; }

EdgePath

#
Gets the graphics path for the triangle edge.
public GraphicsPath EdgePath { get; }

FormPath

#
Gets the graphics path for the entire shape.
public GraphicsPath FormPath { get; }

Size

#
Gets the size of the triangle (also the length of the edges).
public float Size { get; }

Thickness

#
Gets the thickness of the disc.
public float Thickness { get; }

Methods

Contains

#
Test whether this triangle contains a given point. For this test, the corner radii are ignored.
public bool Contains(
PointF
point
)

Move

#
public TriangleF Move(
dx,
dy
)

MoveTo

#
public TriangleF MoveTo(
PointF
newBase
)

VertexAt

#
Gets the vertex location.
public PointF VertexAt()