Table of Contents

Struct DxfExtents2d

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

A box of the plane by its two corners, as AutoCAD's Extents2d: the limits of a layout, the margins of a sheet, the window of a plot. The corners are as the file gives them, not sorted: a box from (0, 0) to (420, 297) is a sheet of A3 laid on its side.

public readonly struct DxfExtents2d : IEquatable<DxfExtents2d>
Implements
Inherited Members

Constructors

DxfExtents2d(GeoPoint2, GeoPoint2)

Initializes a box of its two corners, as AutoCAD's Extents2d(min, max).

Properties

MaxPoint

Gets the corner of the greatest x and y, as AutoCAD's MaxPoint.

MinPoint

Gets the corner of the least x and y, as AutoCAD's MinPoint.

Methods

Equals(DxfExtents2d)

Gets whether two boxes have the same corners, to the bit.

Equals(object)

Gets whether an object is a box of the same corners, to the bit.

GetHashCode()

Gets a hash of the corners, the same for boxes of the same corners.

ToString()

Gives the box as a line for debugging: its two corners.