<!--
{
  "documentType" : "article",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CGFloat-swift.struct/Strideable-Implementations",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Strideable Implementations"
}
-->

# Strideable Implementations

## Topics

### Instance Methods

[`func advanced(by: CGFloat) -> CGFloat`](/documentation/CoreFoundation/CGFloat-swift.struct/advanced(by:))

Returns a `Self` `x` such that `self.distance(to: x)` approximates `n`.

[`func distance(to: CGFloat) -> CGFloat`](/documentation/CoreFoundation/CGFloat-swift.struct/distance(to:))

Returns a stride `x` such that `self.advanced(by: x)` approximates `other`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)