Lines Matching defs:Point

16 class Point {
19 Point() {
25 /// them to a Point.
31 Point(int32_t in_x, int32_t in_y) {
37 /// PP_Point to a Point. This is an implicit conversion constructor.
40 Point(const PP_Point& point) { // Implicit.
46 ~Point() {
49 /// A function allowing implicit conversion of a Point to a PP_Point.
50 /// @return A Point.
71 /// @return The value of x for this Point.
83 /// @return The value of y for this Point.
96 /// @param[in] other A Point.
98 /// @return A new Point containing the result.
99 Point operator+(const Point& other) const {
100 return Point(x() + other.x(), y() + other.y());
103 /// Subtracts one Point from another Point by subtracting their x values
106 /// @param[in] other A Point.
108 /// @return A new Point containing the result.
109 Point operator-(const Point& other) const {
110 return Point(x() - other.x(), y() - other.y());
116 /// @param[in] other A Point.
118 /// @return This Point containing the result.
119 Point& operator+=(const Point& other) {
125 /// Subtracts one Point from another Point by subtracting their x values
128 /// @param[in] other A Point.
130 /// @return This Point containing the result.
131 Point& operator-=(const Point& other) {
139 /// @param[in] other A Point.
140 void swap(Point& other) {
177 /// PP_Point to a Point. This is an implicit conversion constructor.
210 /// @return The value of x for this Point.
222 /// @return The value of y for this Point.
235 /// @param[in] other A Point.
237 /// @return A new Point containing the result.
242 /// Subtracts one Point from another Point by subtracting their x values
247 /// @return A new Point containing the result.
255 /// @param[in] other A Point.
257 /// @return This Point containing the result.
264 /// Subtracts one Point from another Point by subtracting their x values
267 /// @param[in] other A Point.
269 /// @return This Point containing the result.
278 /// @param[in] other A Point.
296 /// @param[in] lhs The Point on the left-hand side of the equation.
297 /// @param[in] rhs The Point on the right-hand side of the equation.
300 inline bool operator==(const pp::Point& lhs, const pp::Point& rhs) {
306 /// @param[in] lhs The Point on the left-hand side of the equation.
307 /// @param[in] rhs The Point on the right-hand side of the equation.
311 inline bool operator!=(const pp::Point& lhs, const pp::Point& rhs) {
317 /// @param[in] lhs The Point on the left-hand side of the equation.
318 /// @param[in] rhs The Point on the right-hand side of the equation.
327 /// @param[in] lhs The Point on the left-hand side of the equation.
328 /// @param[in] rhs The Point on the right-hand side of the equation.