Flutter Engine
 
Loading...
Searching...
No Matches
dl_geometry_types.h
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#ifndef FLUTTER_DISPLAY_LIST_GEOMETRY_DL_GEOMETRY_TYPES_H_
6#define FLUTTER_DISPLAY_LIST_GEOMETRY_DL_GEOMETRY_TYPES_H_
7
14
15namespace flutter {
16
20
35
37static constexpr DlScalar kPi = impeller::kPi;
38
39constexpr inline bool DlScalarNearlyZero(DlScalar x,
40 DlScalar tolerance = kEhCloseEnough) {
41 return impeller::ScalarNearlyZero(x, tolerance);
42}
43
44constexpr inline bool DlScalarNearlyEqual(DlScalar x,
45 DlScalar y,
46 DlScalar tolerance = kEhCloseEnough) {
47 return impeller::ScalarNearlyEqual(x, y, tolerance);
48}
49
50} // namespace flutter
51
52#endif // FLUTTER_DISPLAY_LIST_GEOMETRY_DL_GEOMETRY_TYPES_H_
int32_t x
double y
impeller::Scalar DlScalar
constexpr bool DlScalarNearlyEqual(DlScalar x, DlScalar y, DlScalar tolerance=kEhCloseEnough)
impeller::IPoint32 DlIPoint
constexpr bool DlScalarNearlyZero(DlScalar x, DlScalar tolerance=kEhCloseEnough)
static constexpr DlScalar kPi
static constexpr DlScalar kEhCloseEnough
impeller::Quad DlQuad
Point Vector2
Definition point.h:331
constexpr float kPi
Definition constants.h:26
TRect< int32_t > IRect32
Definition rect.h:789
float Scalar
Definition scalar.h:19
constexpr float kEhCloseEnough
Definition constants.h:57
constexpr bool ScalarNearlyZero(Scalar x, Scalar tolerance=kEhCloseEnough)
Definition scalar.h:31
TRect< Scalar > Rect
Definition rect.h:788
TPoint< Scalar > Point
Definition point.h:327
TPoint< int32_t > IPoint32
Definition point.h:329
TSize< int32_t > ISize32
Definition size.h:160
TSize< Scalar > Size
Definition size.h:159
constexpr bool ScalarNearlyEqual(Scalar x, Scalar y, Scalar tolerance=kEhCloseEnough)
Definition scalar.h:36
std::array< Point, 4 > Quad
Definition point.h:332
A 4x4 matrix using column-major storage.
Definition matrix.h:37