ManaPlus
Functions
vector.cpp File Reference

(986a3bf)

#include "resources/vector.h"
#include "debug.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const Vector &v)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const Vector v 
)

Appends a string representation of a vector to the output stream.

Definition at line 28 of file vector.cpp.

29 {
30  os << "Vector(" << v.x << ", " << v.y << ", " << v.z << ")";
31  return os;
32 }
float z
Definition: vector.h:209
float y
Definition: vector.h:209
float x
Definition: vector.h:209

References Vector::x, Vector::y, and Vector::z.