| Flutter Impeller |

vector.cc
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "vector.h"
6 #include <sstream>
7
8 namespace impeller {
9
10 std::string Vector3::ToString() const {
11 std::stringstream stream;
12 stream << "{" << x << ", " << y << ", " << z << "}";
13 return stream.str();
14 }
15
16 std::string Vector4::ToString() const {
17 std::stringstream stream;
18 stream << "{" << x << ", " << y << ", " << z << ", " << w << "}";
19 return stream.str();
20 }
21
22 } // namespace impeller
impeller::Vector3::x
Scalar x
Definition: vector.h:23
impeller::Vector3::z
Scalar z
Definition: vector.h:25
impeller::Vector4::x
Scalar x
Definition: vector.h:235
impeller::Vector3::y
Scalar y
Definition: vector.h:24
impeller::Vector4::w
Scalar w
Definition: vector.h:238
vector.h
impeller::Vector4::ToString
std::string ToString() const
Definition: vector.cc:16
impeller::Vector4::y
Scalar y
Definition: vector.h:236
impeller::Vector4::z
Scalar z
Definition: vector.h:237
impeller
Definition: allocation.cc:12
impeller::Vector3::ToString
std::string ToString() const
Definition: vector.cc:10