naev 0.12.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 45 of file vec2.h.

Field Documentation

◆ angle

double vec2::angle

Angle of the vector.

Definition at line 49 of file vec2.h.

◆ mod

double vec2::mod

Modulus of the vector.

Definition at line 48 of file vec2.h.

◆ x

double vec2::x

X cartesian position of the vector.

Definition at line 46 of file vec2.h.

◆ y

double vec2::y

Y cartesian position of the vector.

Definition at line 47 of file vec2.h.


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