OneDimensionalPoint
public protocol OneDimensionalPoint : Comparable, PointType, Strideable
A Comparable type that can be used with +(_:_:) and −(_:_:) in conjunction with an associated Vector type.
Note
For multi‐dimensional points, seePointType.
Conformance Requirements:
PointTypeComparable
-
increment()Extension methodAdvances to the next value.
Declaration
Swift
public mutating func increment() -
decrement()Extension methodRetreats to the previous value.
Declaration
Swift
public mutating func decrement() -
successor()Extension methodReturns the value which comes immediately after.
Declaration
Swift
public func successor() -> Self -
predecessor()Extension methodReturns the value which comes immediately before.
Declaration
Swift
public func predecessor() -> Self
View on GitHub
OneDimensionalPoint Protocol Reference