UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
Points Class Reference

A class for Points, inheriting from IPoint. More...

#include <Point.h>

Inheritance diagram for Points:
APair <IPoint> <IPair> <IPair>

Instance Methods

(instancetype) - initWithX:y:
 Initializes a new instance with the given x and y.
 

Additional Inherited Members

- Properties inherited from APair
float x
 
float y
 
- Properties inherited from <IPair>
float x
 First value. e.g., Horizontal, x, position of a point.
 
float y
 Second value. e.g., Vertical, y, position of a point.
 

Detailed Description

A class for Points, inheriting from IPoint.

This class provides an implementation for a point in a 2D coordinate system, defining both the horizontal (x) and vertical (y) positions.

Method Documentation

◆ initWithX:y:

- (instancetype) initWithX: (float) x
y: (float) y 

Initializes a new instance with the given x and y.

Parameters
xFirst value. e.g. Horizontal, x, position of a point.
ySecond value. e.g. Vertical, y, position of a point.
Returns
An initialized instance of Points, or nil if the object could not be created.

Reimplemented from APair.


The documentation for this class was generated from the following file: