Flutter Engine
The Flutter Engine
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
8namespace impeller {
9
10std::string Vector3::ToString() const {
11 std::stringstream stream;
12 stream << "{" << x << ", " << y << ", " << z << "}";
13 return stream.str();
14}
15
16std::string Vector4::ToString() const {
17 std::stringstream stream;
18 stream << "{" << x << ", " << y << ", " << z << ", " << w << "}";
19 return stream.str();
20}
21
22} // namespace impeller
std::string ToString() const
Definition: vector.cc:10
std::string ToString() const
Definition: vector.cc:16