FaceGen 3 SDKs Reference
Loading...
Searching...
No Matches
vect3.cpp
1//
2// Copyright (c) Singular Inversions Inc. 1998.
3//
4// File: vect3.cpp
5// Description: FR2Vect3TC class definitions
6// Authors: Andrew Beatty
7// Created: Aug 11, 1998
8//
9
10#include "stdafx.h"
11
12#include "vect3.hpp"
13
14namespace Fg {
15
16std::ostream& operator<<(std::ostream& s,FR2Vect3FC vec)
17{
18 std::ios::fmtflags oldFlag = s.setf(std::ios::fixed|std::ios::showpos|std::ios::right);
19 std::streamsize oldPrec = s.precision(4);
20 s << "(" << vec.x1 << "," << vec.x2 << "," << vec.x3 << ")";
21 s.setf(oldFlag);
22 s.precision(oldPrec);
23 return s;
24}
25
26std::ostream& operator<<(std::ostream& s,FR2Vect3IC vec)
27{
28 s << "(" << vec.x1 << "," << vec.x2 << "," << vec.x3 << ")";
29 return s;
30}
31
32}