Table of Contents

Struct DxfCustomScale

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

A scale of a plot as a ratio, as AutoCAD's CustomScale: so many units of the paper to so many of the drawing, 1 to 50 for a plan of millimetres drawn at 1:50.

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

Constructors

DxfCustomScale(double, double)

Initializes a scale, as AutoCAD's CustomScale(numerator, denominator).

Properties

Denominator

Gets the units of the drawing they stand for, as AutoCAD's Denominator.

Numerator

Gets the units of the paper, as AutoCAD's Numerator.

Methods

Equals(DxfCustomScale)

Gets whether two scales have the same numbers, to the bit.

Equals(object)

Gets whether an object is a scale of the same numbers, to the bit.

GetHashCode()

Gets a hash of the numbers, the same for scales of the same numbers.

ToString()

Gives the scale as a line for debugging.