Zone

constructor(x1: Double, y1: Double, x2: Double, y2: Double, tag: String, displayName: String)
constructor(x1: Measure<Distance>, y1: Measure<Distance>, x2: Measure<Distance>, y2: Measure<Distance>, tag: String, displayName: String)

Creates a zone with rectangular bounds defined by opposite corners at points (x1, y1) and (x2, y2).

Parameters

x1

The first corner's x-coordinate

y1

The first corner's y-coordinate

x2

The second corner's x-coordinate

y2

The second corner's y-coordinate

tag

A short tag to denote the zone's purpose

displayName

A unique display name for the user


constructor(corner1: Translation2d, corner2: Translation2d, tag: String, displayName: String)

Creates a zone with two given opposite corners and bounds made from them.