#include <point2d.h>
Point in 2D space
Memory:
- x 4 bytes (float32)
- y 4 bytes (float32)
- Total 8 bytes
point2d |
( |
const float |
x, |
|
|
const float |
y |
|
) |
| |
|
inline |
Constructor
- Parameters
-
x | x-coordinate |
y | y-coordinate |
Copy constructor
- Parameters
-
val | type that defines m_x and m_y |
Assign type val to point2d
- Parameters
-
val | type that defines m_x and m_y |
- Returns
- point2d
size_t size_in_bytes |
( |
| ) |
const |
|
inline |
Get size of data structure in bytes
- Returns
- size of data structure in bytes
Get x-coordinate
- Returns
- x-coordinate
Get y-coordinate
- Returns
- y-coordinate
The documentation for this class was generated from the following file: