|
struct { | |
|
float x | |
|
float y | |
|
}; | | |
|
float | data [2] |
|
Definition at line 42 of file base_types.hpp.
◆ operator*() [1/2]
Definition at line 80 of file base_types.hpp.
81 {
82 return point2d{x * p.x, y * p.y};
83 }
◆ operator*() [2/2]
point2d bnb::point2d::operator* |
( |
float | a | ) |
const |
|
inlinenoexcept |
Definition at line 70 of file base_types.hpp.
71 {
72 return point2d{x * a, y * a};
73 }
◆ operator+() [1/2]
Definition at line 90 of file base_types.hpp.
91 {
92 return point2d{x + p.x, y + p.y};
93 }
◆ operator+() [2/2]
point2d bnb::point2d::operator+ |
( |
float | a | ) |
const |
|
inlinenoexcept |
Definition at line 75 of file base_types.hpp.
76 {
77 return point2d{x + a, y + a};
78 }
◆ operator-()
Definition at line 85 of file base_types.hpp.
86 {
87 return point2d{x - p.x, y - p.y};
88 }
◆ operator/() [1/2]
Definition at line 60 of file base_types.hpp.
61 {
62 return point2d{x / p.x, y / p.y};
63 }
◆ operator/() [2/2]
point2d bnb::point2d::operator/ |
( |
float | f | ) |
const |
|
inlinenoexcept |
Definition at line 65 of file base_types.hpp.
66 {
67 return point2d{x / f, y / f};
68 }
◆ sqr()
point2d bnb::point2d::sqr |
( |
| ) |
const |
|
inlinenoexcept |
Definition at line 55 of file base_types.hpp.
56 {
57 return *this * *this;
58 }
◆ sum()
float bnb::point2d::sum |
( |
| ) |
|
|
inline |
◆ data
float bnb::point2d::data[2] |
The documentation for this union was generated from the following file:
- /Users/itumashyk/Workspace/banuba_sdk/libs/types/bnb/types/base_types.hpp