ARMS
3.1.1
Documentation for ARMS movement library
|
#include <point.h>
Public Attributes | |
struct { | |
double x | |
double y | |
}; | |
double | data [2] |
This is a helper union that defines a 2d point or vector. It defines a set of operators that can be used to perform vector operations more consisely.
A union was chosen to represent the point so that a couple different names can be used to access the same elements. For example:
point.x, point.data[0], and point[0]
all refer to the same variable.
arms::Point::data |
An array of the point's coordinates in the form {x, y}
arms::Point::x |
The x coordinate of the point
arms::Point::y |
The y coordinate of the point