ManaPlus
Data Structures | Functions
vector.h File Reference

(986a3bf)

#include <cmath>
#include <iostream>
#include "localconsts.h"

Go to the source code of this file.

Data Structures

class  Vector
 

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.