ARMS  3.1.1
Documentation for ARMS movement library
arms::Point Union Reference

#include <point.h>

Public Attributes

struct {
   double   x
 
   double   y
 
}; 
 
double data [2]
 

Detailed Description

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.

Member Data Documentation

◆ data

arms::Point::data

An array of the point's coordinates in the form {x, y}

◆ x

arms::Point::x

The x coordinate of the point

◆ y

arms::Point::y

The y coordinate of the point


The documentation for this union was generated from the following file: