Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of el17dg by
Point Struct Reference
Position or vector on the screen. More...
#include <collision_lib.h>
| int | x |
| the x position | |
| int | y |
| the y position | |
| Point () | |
| Default constructor. | |
| Point (int _x, int _y) | |
| Constructor with x and y parameters. | |
| Point | operator+ (const Point &rhs) const |
| Vector addition. | |
| Point | operator- (const Point &rhs) const |
| Vector substraction. | |
| int | lengthSquared () |
| Length of vector squared. | |
Detailed Description
Position or vector on the screen.
Supports basic vector arithmetics.
Definition at line 10 of file collision_lib.h.
Constructor & Destructor Documentation
| Point | ( | ) |
Default constructor.
Definition at line 15 of file collision_lib.h.
| Point | ( | int | _x, |
| int | _y | ||
| ) |
Constructor with x and y parameters.
Definition at line 17 of file collision_lib.h.
Member Function Documentation
| int lengthSquared | ( | ) |
Length of vector squared.
Definition at line 38 of file collision_lib.h.
Vector addition.
Definition at line 22 of file collision_lib.h.
Vector substraction.
Definition at line 30 of file collision_lib.h.
Field Documentation
| int x |
the x position
Definition at line 12 of file collision_lib.h.
| int y |
the y position
Definition at line 13 of file collision_lib.h.
Generated on Thu Jul 14 2022 14:15:02 by
1.7.2
