<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSPoint",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@T@NSPoint"
  },
  "title" : "NSPoint"
}
-->

# NSPoint

A point in a Cartesian coordinate system.

```
typealias NSPoint = CGPoint
```

## Discussion

Prior to OS X v10.5 the coordinates were represented by `float` values rather than `CGFloat` values.

When building for 64 bit systems, or building 32 bit like 64 bit, `NSPoint` is typedef’d to `CGPoint`.

## Topics

### Managing Points

[`NSEqualPoints(_:_:)`](/documentation/Foundation/NSEqualPoints(_:_:))

Returns a Boolean value that indicates whether two points are equal.

[`NSMakePoint(_:_:)`](/documentation/Foundation/NSMakePoint(_:_:))

Creates a new `NSPoint` from the specified values.

[`NSPointFromString(_:)`](/documentation/Foundation/NSPointFromString(_:))

Returns a point from a text-based representation.

[`NSStringFromPoint(_:)`](/documentation/Foundation/NSStringFromPoint(_:))

Returns a string representation of a point.

[`NSPointFromCGPoint(_:)`](/documentation/Foundation/NSPointFromCGPoint(_:))

Returns an `NSPoint` typecast from a `CGPoint`.

[`NSPointToCGPoint(_:)`](/documentation/Foundation/NSPointToCGPoint(_:))

Returns a `CGPoint` typecast from an `NSPoint`.

### Zero Constant

[`NSZeroPoint`](/documentation/Foundation/NSZeroPoint)

An `NSPoint` structure with both x and y coordinates set to `0`.

### Related Types

[`NSPointArray`](/documentation/Foundation/NSPointArray)

Type indicating a parameter is array of `NSPoint` structures.

[`NSPointPointer`](/documentation/Foundation/NSPointPointer)

Type indicating a parameter is a pointer to an `NSPoint` structure.



---

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)