MBot Software Library  v1.0
An API documentation to mbot_firmware repository
Public Attributes | List of all members
rc_vector_t Struct Reference
RC » Math » Vector

Struct containing the state of a vector and a pointer to dynamically allocated memory to hold its contents. More...

#include <vector.h>

Public Attributes

int len
 number of elements in the vector
 
double * d
 pointer to dynamically allocated data
 
int initialized
 initialization flag
 

Detailed Description

Struct containing the state of a vector and a pointer to dynamically allocated memory to hold its contents.

Set and read values directly with this code:

vec.d[position]=new_value; // set value in the vector
value = v.d[pos]; // get value from vector

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