Searched refs:Vector2dF (Results 1 – 12 of 12) sorted by relevance
/external/libchrome/ui/gfx/geometry/ |
D | vector2d_f.h | 20 class GFX_EXPORT Vector2dF { 22 constexpr Vector2dF() : x_(0), y_(0) {} in Vector2dF() function 23 constexpr Vector2dF(float x, float y) : x_(x), y_(y) {} in Vector2dF() function 35 void Add(const Vector2dF& other); 37 void Subtract(const Vector2dF& other); 39 void operator+=(const Vector2dF& other) { Add(other); } 40 void operator-=(const Vector2dF& other) { Subtract(other); } 42 void SetToMin(const Vector2dF& other) { in SetToMin() 47 void SetToMax(const Vector2dF& other) { in SetToMax() 70 inline constexpr bool operator==(const Vector2dF& lhs, const Vector2dF& rhs) { [all …]
|
D | vector2d_f.cc | 13 std::string Vector2dF::ToString() const { in ToString() 17 bool Vector2dF::IsZero() const { in IsZero() 21 void Vector2dF::Add(const Vector2dF& other) { in Add() 26 void Vector2dF::Subtract(const Vector2dF& other) { in Subtract() 31 double Vector2dF::LengthSquared() const { in LengthSquared() 35 float Vector2dF::Length() const { in Length() 39 void Vector2dF::Scale(float x_scale, float y_scale) { in Scale() 44 double CrossProduct(const Vector2dF& lhs, const Vector2dF& rhs) { in CrossProduct() 49 double DotProduct(const Vector2dF& lhs, const Vector2dF& rhs) { in DotProduct() 54 Vector2dF ScaleVector2d(const Vector2dF& v, float x_scale, float y_scale) { in ScaleVector2d() [all …]
|
D | point_f.h | 42 void operator+=(const Vector2dF& vector) { 47 void operator-=(const Vector2dF& vector) { 57 Vector2dF OffsetFromOrigin() const { return Vector2dF(x_, y_); } in OffsetFromOrigin() 93 inline PointF operator+(const PointF& lhs, const Vector2dF& rhs) { 99 inline PointF operator-(const PointF& lhs, const Vector2dF& rhs) { 105 inline Vector2dF operator-(const PointF& lhs, const PointF& rhs) { 106 return Vector2dF(lhs.x() - rhs.x(), lhs.y() - rhs.y()); 109 inline PointF PointAtOffsetFromOrigin(const Vector2dF& offset_from_origin) { in PointAtOffsetFromOrigin()
|
D | scroll_offset.h | 25 explicit ScrollOffset(const Vector2dF& v) : x_(v.x()), y_(v.y()) {} in ScrollOffset() 52 Vector2dF DeltaFrom(const ScrollOffset& v) const { in DeltaFrom() 53 return Vector2dF(x_ - v.x(), y_ - v.y()); in DeltaFrom() 112 inline Vector2dF ScrollOffsetToVector2dF(const ScrollOffset& v) { in ScrollOffsetToVector2dF() 113 return Vector2dF(v.x(), v.y()); in ScrollOffsetToVector2dF() 117 const Vector2dF& delta) { in ScrollOffsetWithDelta()
|
D | rect_f.h | 73 Vector2dF OffsetFromOrigin() const { return Vector2dF(x(), y()); } in OffsetFromOrigin() 93 void Offset(const Vector2dF& distance) { Offset(distance.x(), distance.y()); } in Offset() 94 void operator+=(const Vector2dF& offset); 95 void operator-=(const Vector2dF& offset); 200 inline RectF operator+(const RectF& lhs, const Vector2dF& rhs) { 205 inline RectF operator-(const RectF& lhs, const Vector2dF& rhs) { 210 inline RectF operator+(const Vector2dF& lhs, const RectF& rhs) {
|
D | vector2d.h | 67 operator Vector2dF() const { in Vector2dF() function 68 return Vector2dF(static_cast<float>(x()), static_cast<float>(y())); in Vector2dF()
|
D | rect_f.cc | 50 origin_ += Vector2dF(left, top); in Inset() 56 origin_ += Vector2dF(horizontal, vertical); in Offset() 59 void RectF::operator+=(const Vector2dF& offset) { in operator +=() 63 void RectF::operator-=(const Vector2dF& offset) { in operator -=()
|
/external/libchrome/ui/gfx/geometry/mojo/ |
D | geometry_struct_traits.h | 135 struct StructTraits<gfx::mojom::Vector2dFDataView, gfx::Vector2dF> { 136 static float x(const gfx::Vector2dF& v) { return v.x(); } 137 static float y(const gfx::Vector2dF& v) { return v.y(); } 138 static bool Read(gfx::mojom::Vector2dFDataView data, gfx::Vector2dF* out) {
|
D | geometry_struct_traits_unittest.cc | 67 void EchoVector2dF(const Vector2dF& v, in EchoVector2dF() 195 TEST_F(GeometryStructTraitsTest, Vector2dF) { in TEST_F() argument 198 gfx::Vector2dF input(x, y); in TEST_F() 200 gfx::Vector2dF output; in TEST_F()
|
D | geometry_traits_test_service.mojom | 40 EchoVector2dF(Vector2dF v) => (Vector2dF pass);
|
D | geometry.typemap | 32 "gfx.mojom.Vector2dF=gfx::Vector2dF",
|
D | geometry.mojom | 67 struct Vector2dF {
|