Inherits NSObject.
A point at the specified metrics coordinates.
Swift code snippet:
// Create points with x, y coordinates
let point1 = Point(x: 10.0, y: 20.0)
let point2 = Point(x: 30.0, y: 40.0)
let point3 = Point(x: 50.0, y: 60.0)
print("Created points: P1(\(point1.x), \(point1.y)), P2(\(point2.x), \(point2.y)), P3(\(point3.x), \(point3.y))")
Objective C code snippet:
NCPoint *point1 = [[
NCPoint alloc] initWithX:10.0 y:20.0];
NCPoint *point2 = [[
NCPoint alloc] initWithX:30.0 y:40.0];
NCPoint *point3 = [[
NCPoint alloc] initWithX:50.0 y:60.0];
NSLog(@"Created points: P1(%.1f, %.1f), P2(%.1f, %.1f), P3(%.1f, %.1f)",
point1.
x, point1.
y, point2.
x, point2.
y, point3.
x, point3.
y);
Definition at line 24 of file NCPoint.h.