naev 0.11.5
vec2 Struct Reference

Represents a 2d vector. More...

#include <vec2.h>

Data Fields

double x
 
double y
 
double mod
 
double angle
 

Detailed Description

Represents a 2d vector.

Definition at line 32 of file vec2.h.

Field Documentation

◆ angle

double vec2::angle

Angle of the vector.

Definition at line 36 of file vec2.h.

◆ mod

double vec2::mod

Modulus of the vector.

Definition at line 35 of file vec2.h.

◆ x

double vec2::x

X cartesian position of the vector.

Definition at line 33 of file vec2.h.

◆ y

double vec2::y

Y cartesian position of the vector.

Definition at line 34 of file vec2.h.


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