#include <Point.hpp>
|
| Point () |
| Default constructor.
|
|
| Point (const float x_val, const float y_val) |
| Constructor taking two float values.
|
|
| Point (const Point &other) |
| Copy constructor.
|
|
Point & | operator= (const Point &other) |
| Copy assignment operator.
|
|
| ~Point () |
| Destructor.
|
|
Fixed | getX () const |
| Gets the x-coordinate of the point.
|
|
Fixed | getY () const |
| Gets the y-coordinate of the point.
|
|
Point.hpp の 28 行目に定義があります。
◆ Point() [1/3]
Default constructor.
Initializes the x and y coordinates to 0.0.
Point.cpp の 30 行目に定義があります。
◆ Point() [2/3]
Point::Point |
( |
const float |
x_val, |
|
|
const float |
y_val |
|
) |
| |
Constructor taking two float values.
Initializes the x and y coordinates with the given float values.
- 引数
-
x_val | The x-coordinate. |
y_val | The y-coordinate. |
Point.cpp の 39 行目に定義があります。
◆ Point() [3/3]
Point::Point |
( |
const Point & |
other | ) |
|
Copy constructor.
Initializes a new Point object by copying the coordinates from another Point object.
- 引数
-
other | The Point object to copy from. |
Point.cpp の 47 行目に定義があります。
◆ ~Point()
◆ getX()
Fixed Point::getX |
( |
| ) |
const |
Gets the x-coordinate of the point.
- 戻り値
- The x-coordinate as a Fixed object.
Point.cpp の 74 行目に定義があります。
◆ getY()
Fixed Point::getY |
( |
| ) |
const |
Gets the y-coordinate of the point.
- 戻り値
- The y-coordinate as a Fixed object.
Point.cpp の 81 行目に定義があります。
◆ operator=()
Copy assignment operator.
Assigns the coordinates of another Point object to the current object. Note that x and y are const, so assignment has no practical effect.
- 引数
-
other | The Point object to assign from. |
- 戻り値
- A reference to the current Point object.
Point.cpp の 57 行目に定義があります。
このクラス詳解は次のファイルから抽出されました: