io.github.scala_tessella.dcel.geometry
Members list
Type members
Classlikes
Companion object for AngleDegree. Holds the smart constructors and the extension method set.
Companion object for AngleDegree. Holds the smart constructors and the extension method set.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
AngleDegree.type
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Planar geometry toolbox using Spire for precise calculations.
Planar geometry toolbox using Spire for precise calculations.
This object uses Spire's numeric types to avoid floating-point inaccuracies.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
BigDecimalGeometry.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
BigLineSegment.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
BigPoint.type
Companion object for RegularPolygon.
Companion object for RegularPolygon.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RegularPolygon.type
Companion object for SimplePolygon. Holds the smart constructor fromUntrusted and the static helper alphaSum used both internally and by callers building their own polygons.
Companion object for SimplePolygon. Holds the smart constructor fromUntrusted and the static helper alphaSum used both internally and by callers building their own polygons.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SimplePolygon.type
Types
An angle in degrees, opaque-typed over spire.math.Rational for exact arithmetic. Backed by Rational so that values like 60, 120, 60/7 and their sums round-trip exactly — critical for the angle-sum closure checks performed by SimplePolygon.fromUntrusted and TilingValidation.validateGeometrically.
An angle in degrees, opaque-typed over spire.math.Rational for exact arithmetic. Backed by Rational so that values like 60, 120, 60/7 and their sums round-trip exactly — critical for the angle-sum closure checks performed by SimplePolygon.fromUntrusted and TilingValidation.validateGeometrically.
Construct from an Int, a Rational, or a BigRadian via AngleDegree.apply. The companion's extensions cover arithmetic (+, -, *, /), normalisation, and the three usual transforms: inverted (-d), supplement (180 - d), conjugate (360 - d).
Attributes
Standard unit of angular measure.
Standard unit of angular measure.
Backed by Double as of ADR-0009 candidate C. AngleDegree.toBigRadian already capped precision at Double via (d / 180).toDouble on master, so the prior BigDecimal backing was pure allocation overhead for callers that only fed the value to trig primitives. See ADR finding 1.
Attributes
A unit-side regular polygon, opaque-typed over its number of sides. Two regular polygons are equal iff they have the same side count; an ordering by side count is provided in the companion.
A unit-side regular polygon, opaque-typed over its number of sides. Two regular polygons are equal iff they have the same side count; an ordering by side count is provided in the companion.
Construct via RegularPolygon.apply (RegularPolygon(6)) or via RegularPolygon.fromInteriorAngle when only the interior angle is known. Use toSides, alpha, angles to read back the geometric attributes.
Attributes
A simple (non-self-intersecting) polygon with unit-length sides, opaque-typed over its ordered vector of interior angles. "Simple" here is the standard geometric meaning — edges meet only at vertices.
A simple (non-self-intersecting) polygon with unit-length sides, opaque-typed over its ordered vector of interior angles. "Simple" here is the standard geometric meaning — edges meet only at vertices.
Construct from untrusted input via SimplePolygon.fromUntrusted; the smart constructor runs the full closure / simplicity / angle-sum validation. The extensions on SimplePolygon expose readback, coordinate generation, symmetry analysis and parallelogon detection (for torus tiling).