20 #ifndef INCLUDE_WYKOBI_UTILTIIES 21 #define INCLUDE_WYKOBI_UTILTIIES 31 template <
typename Type>
32 inline std::ostream& operator<<(std::ostream& os, const point2d<Type>& point) {
33 os << std::scientific << std::showpoint << std::setprecision(6) <<
"(" 34 << point.x <<
"," << point.y <<
")";
39 template <
typename Type>
40 inline std::ostream& operator<<(std::ostream& os, const point3d<Type>& point) {
41 os << std::scientific << std::showpoint << std::setprecision(6) <<
"(" 42 << point.x <<
"," << point.y <<
"," << point.z <<
")";
47 template <
typename Type>
48 inline std::ostream& operator<<(std::ostream& os, const vector2d<Type>& v) {
49 os << std::scientific << std::showpoint << std::setprecision(6) <<
"(" << v.x
55 template <
typename Type>
56 inline std::ostream& operator<<(std::ostream& os, const vector3d<Type>& v) {
57 os << std::scientific << std::showpoint << std::setprecision(6) <<
"(" << v.x
58 <<
"," << v.y <<
"," << v.z <<
")";
63 template <
typename Type>
64 inline std::ostream& operator<<(std::ostream& os, const ray<Type, 2>&
ray) {
65 os << std::scientific << std::showpoint << std::setprecision(6) <<
"(" 72 template <
typename Type>
73 inline std::ostream& operator<<(std::ostream& os, const ray<Type, 3>&
ray) {
74 os << std::scientific << std::showpoint << std::setprecision(6) <<
"(" 82 template <
typename Type, std::
size_t Dimension>
87 for (std::size_t i = 0; i < Dimension - 1; ++i) {
88 os << std::scientific << std::showpoint << std::setprecision(6) << point[i]
92 os << std::scientific << std::showpoint << std::setprecision(6)
93 << point[Dimension - 1] <<
")";
98 template <
typename Type, std::
size_t Dimension>
101 for (
unsigned int i = 0; i < wykobi::segment<Type, Dimension>::PointCount;
109 template <
typename Type, std::
size_t Dimension>
112 for (
unsigned int i = 0; i < wykobi::line<Type, Dimension>::PointCount; ++i) {
119 template <
typename Type, std::
size_t Dimension>
122 for (
unsigned int i = 0; i < wykobi::triangle<Type, Dimension>::PointCount;
130 template <
typename Type>
133 for (
unsigned int i = 0; i < wykobi::rectangle<Type>::PointCount; ++i) {
140 template <
typename Type, std::
size_t Dimension>
143 for (
unsigned int i = 0; i < wykobi::box<Type, Dimension>::PointCount; ++i) {
150 template <
typename Type, std::
size_t Dimension>
153 for (
unsigned int i = 0; i < wykobi::quadix<Type, Dimension>::PointCount;
161 template <
typename Type>
162 inline std::ostream& operator<<(std::ostream& os, const circle<Type>&
circle) {
163 os << std::scientific << std::showpoint << std::setprecision(10) <<
"(" 169 template <
typename Type>
170 inline std::ostream& operator<<(std::ostream& os, const sphere<Type>&
sphere) {
171 os << std::scientific << std::showpoint << std::setprecision(6) <<
"(" 178 template <
typename Type, std::
size_t M, std::
size_t N>
181 for (std::size_t x = 0; x < M; x++) {
182 for (std::size_t y = 0; y < N; y++) {
183 os << matrix(x, y) <<
"\t";
Definition: wykobi_matrix.hpp:33
T x
Definition: wykobi.hpp:435
Definition: wykobi.hpp:359
Definition: wykobi.hpp:426
VectorType direction
Definition: wykobi.hpp:683
Definition: wykobi.hpp:32
Definition: wykobi.hpp:674
std::ostream & operator<<(std::ostream &os, const point2d< Type > &point)
Definition: wykobi_utilities.hpp:32
T radius
Definition: wykobi.hpp:435
T radius
Definition: wykobi.hpp:428
Definition: wykobi.hpp:263
Definition: wykobi.hpp:335
Definition: wykobi.hpp:71
Definition: wykobi.hpp:287
Definition: wykobi.hpp:433
T y
Definition: wykobi.hpp:435
T x
Definition: wykobi.hpp:428
PointType origin
Definition: wykobi.hpp:682
Definition: wykobi.hpp:311
T z
Definition: wykobi.hpp:435
Definition: wykobi.hpp:702
T y
Definition: wykobi.hpp:428