DimensionParams class final
A dimension's parameters (spec 11 D2), in its group's local space:
- a, b: the two ends, each an AttachedEnd (a wall end point it follows) or a FixedEnd (a point in the group's local space);
- kind: aligned, or linear along the group's local x (horizontal) or local y (vertical) (decision 17);
- offset: a signed model length in the group's local units, from the
outermost measured point on the line's side (D6). Its side is its sign
bit (R-2):
+0.0and every positive value lie on the measuring direction's left normal,-0.0and every negative value on its right.
fromJson accepts anything well-typed (R-3): a k outside {0, 1}, a
non-finite fixed coordinate or a non-finite offset are kept, reported
dimension.broken (D15), and generate nothing (D7).
Constructors
- DimensionParams(DimEnd a, DimEnd b, DimKind kind, double offset)
-
const
Properties
- a → DimEnd
-
final
- b → DimEnd
-
final
- hashCode → int
-
Consistent with
==: every NaN offset hashes asdouble.nandoes (NaNs of other bit patterns hash differently in the VM, yet compare equal); the two zeros may collide.no setteroverride - kind → DimKind
-
final
- offset → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- typeId → String
-
no setter
Methods
-
copyWith(
{DimEnd? a, DimEnd? b, DimKind? kind, double? offset}) → DimensionParams -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
Every key, in this order:
a,b,kind(by name),offset. A-0.0offset is written-0.0and read back as-0.0(D2). -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
Value-equal, exactly (stored values, CLAUDE.md), but not uniformly:
override
Static Methods
-
fromJson(
Map< String, Object?> json) → DimensionParams - Throws on a missing key, an end of neither shape, or an unknown kind or side name.
Constants
- componentTypeId → const String