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, see PointType.

Conformance Requirements:

  • increment() Extension method

    Advances to the next value.

    Declaration

    Swift

    public mutating func increment()
  • decrement() Extension method

    Retreats to the previous value.

    Declaration

    Swift

    public mutating func decrement()
  • successor() Extension method

    Returns the value which comes immediately after.

    Declaration

    Swift

    public func successor() -> Self
  • predecessor() Extension method

    Returns the value which comes immediately before.

    Declaration

    Swift

    public func predecessor() -> Self