Public Member Functions | Public Attributes | List of all members
Vec2 Class Reference

Two-dimensional vector. More...

#include <jngl/Vec2.hpp>

Public Member Functions

 Vec2 ()
 Null vector.
 Vec2 (double x, double y)
 Creates a vector {x, y}.
template<class Archive >
void serialize (Archive &ar, const unsigned int)
 Helper function to use with cereal or Boost.Serialization.

Public Attributes

double x = 0
 x component
double y = 0
 y component

Detailed Description

Two-dimensional vector.

Definition at line 14 of file Vec2.hpp.

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