| Flutter Impeller |

Namespaces | Macros | Functions
round_superellipse_unittests.cc File Reference
`#include "gtest/gtest.h"`
`#include "flutter/impeller/geometry/round_superellipse.h"`
`#include "flutter/impeller/geometry/round_superellipse_param.h"`
`#include "flutter/impeller/geometry/geometry_asserts.h"`

Go to the source code of this file.

## Namespaces
| impeller
| impeller::testing

## Macros
#define | CHECK_POINT_WITH_OFFSET(rr, p, outward_offset)
#define | CHECK_POINT_AND_MIRRORS(p)
#define | CHECK_DIAGONAL_POINTS(p)

## Functions
| impeller::testing::TEST (RoundSuperellipseTest, EmptyDeclaration)
| impeller::testing::TEST (RoundSuperellipseTest, DefaultConstructor)
| impeller::testing::TEST (RoundSuperellipseTest, EmptyRectConstruction)
| impeller::testing::TEST (RoundSuperellipseTest, RectConstructor)
| impeller::testing::TEST (RoundSuperellipseTest, InvertedRectConstruction)
| impeller::testing::TEST (RoundSuperellipseTest, EmptyOvalConstruction)
| impeller::testing::TEST (RoundSuperellipseTest, OvalConstructor)
| impeller::testing::TEST (RoundSuperellipseTest, InvertedOvalConstruction)
| impeller::testing::TEST (RoundSuperellipseTest, RectRadiusConstructor)
| impeller::testing::TEST (RoundSuperellipseTest, RectXYConstructor)
| impeller::testing::TEST (RoundSuperellipseTest, RectSizeConstructor)
| impeller::testing::TEST (RoundSuperellipseTest, RectRadiiConstructor)
| impeller::testing::TEST (RoundSuperellipseTest, RectRadiiOverflowWidthConstructor)
| impeller::testing::TEST (RoundSuperellipseTest, RectRadiiOverflowHeightConstructor)
| impeller::testing::TEST (RoundSuperellipseTest, Shift)
| impeller::testing::TEST (RoundSuperellipseTest, ExpandScalar)
| impeller::testing::TEST (RoundSuperellipseTest, ExpandTwoScalars)
| impeller::testing::TEST (RoundSuperellipseTest, ExpandFourScalars)
| impeller::testing::TEST (RoundSuperellipseTest, ContractScalar)
| impeller::testing::TEST (RoundSuperellipseTest, ContractTwoScalars)
| impeller::testing::TEST (RoundSuperellipseTest, ContractFourScalars)
| impeller::testing::TEST (RoundSuperellipseTest, ContractAndRequireRadiiAdjustment)
| impeller::testing::TEST (RoundSuperellipseTest, NoCornerRoundSuperellipseContains)
| impeller::testing::TEST (RoundSuperellipseTest, TinyCornerContains)
| impeller::testing::TEST (RoundSuperellipseTest, UniformSquareContains)
| impeller::testing::TEST (RoundSuperellipseTest, UniformEllipticalContains)
| impeller::testing::TEST (RoundSuperellipseTest, UniformRectangularContains)
| impeller::testing::TEST (RoundSuperellipseTest, SlimDiagonalContains)
| impeller::testing::TEST (RoundSuperellipseTest, PointsOutsideOfSharpCorner)
| impeller::testing::TEST (RoundSuperellipseTest, PathForRectangularRseWithShapeCornersShouldBeWithinBounds)

## Macro Definition Documentation

## ◆ CHECK_DIAGONAL_POINTS

#define CHECK_DIAGONAL_POINTS | ( |  | p | ) |

Value:
CHECK_POINT_WITH_OFFSET(rr, (p), Point(0.02, -0.02)); \
CHECK_POINT_WITH_OFFSET(rr, (p) * Point(-1, -1), Point(-0.02, 0.02));
impeller::Point
TPoint< Scalar > Point
Definition: point.h:425
CHECK_POINT_WITH_OFFSET
#define CHECK_POINT_WITH_OFFSET(rr, p, outward_offset)
Definition: round_superellipse_unittests.cc:12

## ◆ CHECK_POINT_AND_MIRRORS [1/3]

#define CHECK_POINT_AND_MIRRORS | ( |  | p | ) |

Value:
CHECK_POINT_WITH_OFFSET(rr, (p), Point(0.02, 0.02)); \
CHECK_POINT_WITH_OFFSET(rr, (p) * Point(1, -1), Point(0.02, -0.02)); \
CHECK_POINT_WITH_OFFSET(rr, (p) * Point(-1, 1), Point(-0.02, 0.02)); \
CHECK_POINT_WITH_OFFSET(rr, (p) * Point(-1, -1), Point(-0.02, -0.02));

## ◆ CHECK_POINT_AND_MIRRORS [2/3]

#define CHECK_POINT_AND_MIRRORS | ( |  | p | ) |

Value:
CHECK_POINT_WITH_OFFSET(rr, (p), Point(0.02, 0.02)); \
CHECK_POINT_WITH_OFFSET(rr, (p) * Point(1, -1), Point(0.02, -0.02)); \
CHECK_POINT_WITH_OFFSET(rr, (p) * Point(-1, 1), Point(-0.02, 0.02)); \
CHECK_POINT_WITH_OFFSET(rr, (p) * Point(-1, -1), Point(-0.02, -0.02));

## ◆ CHECK_POINT_AND_MIRRORS [3/3]

#define CHECK_POINT_AND_MIRRORS | ( |  | p | ) |

Value:
CHECK_POINT_WITH_OFFSET(rr, (p - center) * Point(1, 1) + center, \
Point(0.02, 0.02)); \
CHECK_POINT_WITH_OFFSET(rr, (p - center) * Point(1, -1) + center, \
Point(0.02, -0.02)); \
CHECK_POINT_WITH_OFFSET(rr, (p - center) * Point(-1, 1) + center, \
Point(-0.02, 0.02)); \
CHECK_POINT_WITH_OFFSET(rr, (p - center) * Point(-1, -1) + center, \
Point(-0.02, -0.02));

## ◆ CHECK_POINT_WITH_OFFSET

#define CHECK_POINT_WITH_OFFSET | ( |  | rr,
|  |  | p,
|  |  | outward_offset
| ) |  |

Value:
EXPECT_TRUE(rr.Contains(p)); \
EXPECT_FALSE(rr.Contains(p + outward_offset));

Definition at line 12 of file round_superellipse_unittests.cc.