Home
last modified time | relevance | path

Searched refs:AxisTransform2d (Results 1 – 3 of 3) sorted by relevance

/external/libchrome/ui/gfx/geometry/
Daxis_transform2d.h19 class GFX_EXPORT AxisTransform2d {
21 constexpr AxisTransform2d() = default;
22 constexpr AxisTransform2d(float scale, const Vector2dF& translation) in AxisTransform2d() function
25 bool operator==(const AxisTransform2d& other) const {
28 bool operator!=(const AxisTransform2d& other) const {
44 void PreConcat(const AxisTransform2d& pre) { in PreConcat()
48 void PostConcat(const AxisTransform2d& post) { in PostConcat()
87 static inline AxisTransform2d PreScaleAxisTransform2d(const AxisTransform2d& t, in PreScaleAxisTransform2d()
89 AxisTransform2d result(t); in PreScaleAxisTransform2d()
94 static inline AxisTransform2d PostScaleAxisTransform2d(const AxisTransform2d& t, in PostScaleAxisTransform2d()
[all …]
Daxis_transform2d_unittest.cc14 AxisTransform2d t(1.25f, Vector2dF(3.75f, 55.f)); in TEST()
27 AxisTransform2d t(1.25f, Vector2dF(3.75f, 55.f)); in TEST()
28 EXPECT_EQ(AxisTransform2d(1.5625f, Vector2dF(3.75f, 55.f)), in TEST()
31 EXPECT_EQ(AxisTransform2d(1.5625f, Vector2dF(3.75f, 55.f)), t); in TEST()
35 AxisTransform2d t(1.25f, Vector2dF(3.75f, 55.f)); in TEST()
36 EXPECT_EQ(AxisTransform2d(1.5625f, Vector2dF(4.6875f, 68.75f)), in TEST()
39 EXPECT_EQ(AxisTransform2d(1.5625f, Vector2dF(4.6875f, 68.75f)), t); in TEST()
46 AxisTransform2d t(1.25f, Vector2dF(3.75f, 55.f)); in TEST()
47 EXPECT_EQ(AxisTransform2d(1.25f, Vector2dF(7.5f, 48.75f)), in TEST()
50 EXPECT_EQ(AxisTransform2d(1.25f, Vector2dF(7.5f, 48.75f)), t); in TEST()
[all …]
Daxis_transform2d.cc11 std::string AxisTransform2d::ToString() const { in ToString()