loom & weft
Made for Swift.

Unreleased APIs from PR #2. Not in 0.2.1. Stable 0.2.1 reference.

LOOM Unreleased (PR #2) / PLOTTING AND CALENDARS

CanvasPoint

A position in caller-defined Cartesian coordinates; positive y points upward.

Standard inherited Swift protocol operations such as synthesized equality and OptionSet set operations are not repeated. The public declarations below are extracted from the exact source revision listed in the coverage manifest.

Members on this page

Feature guides and release status

CanvasPoint

Structure
struct CanvasPoint

Conforms to: Swift.Equatable, Swift.Sendable, Swift.SendableMetatype.

A position in caller-defined Cartesian coordinates; positive y points upward.

Source · Canvas.swift:5

x

Instance Property
var x: Double

Zero-based column in terminal cells.

Source · Canvas.swift:6

y

Instance Property
var y: Double

Zero-based row in terminal cells.

Source · Canvas.swift:7

init(x:y:)

Initializer
init(x: Double, y: Double)

Creates a value with the supplied arguments. Default arguments are shown in the declaration.

Parameters (2)
x
Argument type and any default are shown in the declaration; see the behavior notes above.
y
Argument type and any default are shown in the declaration; see the behavior notes above.
Source · Canvas.swift:9