/foundation/arkui/ace_engine/frameworks/base/geometry/ng/ |
H A D | offset_t.h | 33 OffsetT(T x, T y) : x_(x), y_(y) {} in OffsetT() 38 x_ = mainOffset; in OffsetT() 41 x_ = crossOffset; in OffsetT() 48 x_ = 0; in Reset() 54 return x_; in GetX() 64 return axis == Axis::HORIZONTAL ? x_ : y_; in GetMainOffset() 69 return axis == Axis::HORIZONTAL ? y_ : x_; in GetCrossOffset() 74 T dx = x_ - offset.x_; in GetDistance() 81 x_ in SetX() [all...] |
H A D | radius.h | 27 Radius(double x, double y) : x_(Dimension(x)), y_(Dimension(y)) {} in Radius() 28 Radius(const Dimension& x, const Dimension& y) : x_(x), y_(y) {} in Radius() 33 return x_.IsValid() && y_.IsValid(); in IsValid() 38 return x_.IsValid() || y_.IsValid(); in HasValue() 43 return x_; in GetX() 54 x_ = Dimension(x); in SetX() 65 return Radius(x_ + radius.x_, y_ + radius.y_); in operator +() 70 return Radius(x_ - radius.x_, y in operator -() 96 Dimension x_; global() member in OHOS::Ace::NG::final [all...] |
H A D | point_t.h | 29 PointT(T x, T y) : x_(x), y_(y) {} in PointT() 33 return x_; in GetX() 43 x_ = x; in SetX() 53 T x = (x_ - center.GetX()) * std::cos(angle) - (y_ - center.GetY()) * std::sin(angle) + center.GetX(); in Rotate() 54 T y = (x_ - center.GetX()) * std::sin(angle) + (y_ - center.GetY()) * std::cos(angle) + center.GetY(); in Rotate() 55 x_ = x; in Rotate() 61 return PointT(x_ - offset.GetX(), y_ - offset.GetY()); in operator -() 66 return PointT(x_ + offset.GetX(), y_ + offset.GetY()); in operator +() 71 return OffsetF(x_ - PointT.x_, y in operator -() [all...] |
H A D | rect_t.h | 57 x_ = 0; in Reset() 65 x_ = x; in SetRect() 79 x_ *= scale; in ApplyScale() 87 x_ = round(x_ * scale); in ApplyScaleAndRound() 95 return GreatNotEqual(width_, 0) ? x_ : x_ + width_; in Left() 105 return GreatNotEqual(width_, 0) ? x_ + width_ : x_; in Right() 115 return x_; in GetX() 448 T x_ = 0; global() member in OHOS::Ace::NG::RectT [all...] |
/foundation/graphic/graphic_utils_lite/frameworks/ |
H A D | geometry2d.cpp | 27 int32_t den = static_cast<int32_t>(aA.x_ - aB.x_) * (bA.y_ - bB.y_) - in Intersect() 28 static_cast<int32_t>(aA.y_ - aB.y_) * (bA.x_ - bB.x_); in Intersect() 32 int32_t xNum = (static_cast<int32_t>(aA.x_) * aB.y_ - static_cast<int32_t>(aA.y_) * aB.x_) * (bA.x_ - bB.x_) - in Intersect() 33 (aA.x_ - aB.x_) * (static_cas in Intersect() [all...] |
H A D | transform.cpp | 72 int32_t c = (static_cast<int32_t>(polygon_[j].x_ - polygon_[i].x_) * (polygon_[k].y_ - polygon_[j].y_)) - in GetClockWise() 73 (static_cast<int32_t>(polygon_[j].y_ - polygon_[i].y_) * (polygon_[k].x_ - polygon_[j].x_)); in GetClockWise() 99 Scale(Vector3<float>(scale.x_, scale.y_, 1.0f), Vector3<float>(pivot.x_, pivot.y_, 0)); in Scale() 117 if (polygon_[i].x_ != 0 || polygon_[i].y_ != 0) { in IsInvalid() 126 Rotate(angle, Vector3<float>(pivot.x_, pivot.y_, 0), Vector3<float>(pivot.x_, pivot.y_, 1.0f)); in Rotate() 140 Translate(Vector3<int16_t>(trans.x_, tran in Translate() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/ |
H A D | point.h | 68 scalar x_; member in OHOS::Rosen::Drawing::PointF 72 inline PointF::PointF() noexcept : x_(0.0), y_(0.0) {} 74 inline PointF::PointF(const PointF& p) noexcept : x_(p.GetX()), y_(p.GetY()) {} in y_() 76 inline PointF::PointF(scalar x, scalar y) noexcept : x_(x), y_(y) {} in y_() 80 return x_; in GetX() 90 x_ = x; in SetX() 100 x_ = x; in Set() 106 return (0 == x_) && (0 == y_); in IsZero() 111 x_ += x; in Offset() 117 x_ in operator +=() 233 int x_; global() member in OHOS::Rosen::Drawing::PointI [all...] |
H A D | point3.h | 60 scalar x_; member in OHOS::Rosen::Drawing::Point3 65 inline Point3::Point3() noexcept : x_(0.0), y_(0.0), z_(0.0) {} 67 inline Point3::Point3(const Point3& p) noexcept : x_(p.GetX()), y_(p.GetY()), z_(p.GetZ()) {} in z_() 69 inline Point3::Point3(scalar x, scalar y, scalar z) noexcept : x_(x), y_(y), z_(z) {} in z_() 73 return x_; in GetX() 88 x_ = x; in SetX() 103 x_ += p.x_; in operator +=() 111 x_ -= p.x_; in operator -=() [all...] |
/foundation/arkui/ace_engine/frameworks/base/geometry/ |
H A D | quaternion.h | 26 Quaternion(double x, double y, double z, double w) : x_(x), y_(y), z_(z), w_(w) {} in Quaternion() 31 return x_; in GetX() 47 x_ = x; in SetX() 64 auto x = this->x_ + q.x_; in operator +() 73 auto x = w_ * q.x_ + x_ * q.w_ + y_ * q.z_ - z_ * q.y_; in operator *() 74 auto y = w_ * q.y_ - x_ * q.z_ + y_ * q.w_ + z_ * q.x_; in operator *() 75 auto z = w_ * q.z_ + x_ * in operator *() 107 double x_ = 0.0; global() member in OHOS::Ace::Quaternion [all...] |
H A D | point.h | 30 Point(double x, double y) : x_(x), y_(y) {} in Point() 31 Point(double x, double y, SourceType sourceType) : x_(x), y_(y), sourceType_(sourceType) {} in Point() 32 Point(double x, double y, double screenX, double screenY) : x_(x), y_(y), screenX_(screenX), screenY_(screenY) {} in Point() 34 : x_(x), y_(y), screenX_(screenX), screenY_(screenY), sourceType_(sourceType) in Point() 39 return x_; in GetX() 49 x_ = x; in SetX() 89 double x = (x_ - center.GetX()) * std::cos(angle) - (y_ - center.GetY()) * std::sin(angle) + center.GetX(); in Rotate() 90 double y = (x_ - center.GetX()) * std::sin(angle) + (y_ - center.GetY()) * std::cos(angle) + center.GetY(); in Rotate() 91 x_ = x; in Rotate() 97 return Point(x_ in operator -() 121 double x_ = 0.0; global() member in OHOS::Ace::Point [all...] |
H A D | rect.h | 45 x_ = x; in SetRect() 59 x_ *= scale; in ApplyScale() 67 x_ = round(x_ * scale.Width()); in ApplyScaleAndRound() 75 return GreatNotEqual(width_, 0.0) ? x_ : x_ + width_; in Left() 85 return GreatNotEqual(width_, 0.0) ? x_ + width_ : x_; in Right() 116 x_ = offset.GetX(); in SetOffset() 122 return Offset(x_, y in GetOffset() 410 double x_ = 0.0; global() member in OHOS::Ace::Rect [all...] |
H A D | vec3.h | 30 x_ = AnimatableFloat(x, option); in Vec3() 36 x_ = x; in Vec3() 39 animationOption_ = x_.GetAnimationOption(); in Vec3() 48 x_.SetContextAndCallback(context, std::forward<RenderNodeAnimationCallback>(callback)); in SetContextAndCallbacks() 55 return x_.GetValue(); in GetX() 75 x_ = AnimatableFloat(x); in SetX() 90 return NearEqual(x_.GetValue(), vec.x_.GetValue()) in operator ==() 103 x_ = AnimatableFloat(newValue.GetX(), animationOption_); in operator =() 110 AnimatableFloat x_; member in OHOS::Ace::Vec3 [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | radius.h | 31 Radius(double x, double y) : x_(Dimension(x)), y_(Dimension(y)) {} in Radius() 32 Radius(const Dimension& x, const Dimension& y) : x_(x), y_(y) {} in Radius() 33 Radius(const AnimatableDimension& x, const AnimatableDimension& y) : x_(x), y_(y) {} in Radius() 38 x_.SetContextAndCallback(context, callback); in SetContextAndCallback() 44 x_.SetValue(round(x_.Value() * scale)); in ApplyScaleAndRound() 50 return x_.IsValid() && y_.IsValid(); in IsValid() 55 return x_.IsValid() || y_.IsValid(); in HasValue() 60 return x_; in GetX() 70 x_ in SetX() 114 AnimatableDimension x_; global() member in OHOS::Ace::final [all...] |
/foundation/window/window_manager/utils/include/ |
H A D | wm_math.h | 89 float x_, y_; member 90 Vector2() : x_(0.0f), y_(0.0f) {} in Vector2() 92 : x_(inX), y_(inY) {} in Vector2() 95 return Vector2 { -v.x_, -v.y_ }; in operator -() 99 return Vector2 { a.x_ + b.x_, a.y_ + b.y_ }; in operator +() 103 return Vector2 { a.x_ - b.x_, a.y_ - b.y_ }; in operator -() 107 return (x_ * x_ in LengthSq() 116 float x_, y_, z_; global() member [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/ |
H A D | rs_particle_noise_field.cpp | 27 return ((point.x_ > fieldCenter_.x_ - width * HALF) && (point.x_ < fieldCenter_.x_ + width * HALF) && in IsPointInField() 30 double normX = (point.x_ - fieldCenter_.x_) * (point.x_ - fieldCenter_.x_); in IsPointInField() 41 if (ROSEN_EQ(direction.x_, 0.f) && ROSEN_EQ(direction.y_, 0.f)) { in CalculateDistanceToRectangleEdge() 45 float left = center.x_ in CalculateDistanceToRectangleEdge() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/ |
H A D | shape_view_box.h | 31 return x_; in Left() 51 x_ = left; in SetLeft() 75 x_ = shapeViewBox.x_; in operator =() 84 return (x_ == shapeViewBox.x_) && (y_ == shapeViewBox.y_) && (width_ == shapeViewBox.width_) && in operator ==() 90 return (x_ != shapeViewBox.x_) || (y_ != shapeViewBox.y_) || (width_ != shapeViewBox.width_) || in operator !=() 95 Dimension x_ = Dimension(-1.0); member in OHOS::Ace::NG::final
|
/foundation/arkui/ace_engine/test/mock/core/rosen/ |
H A D | testing_point.h | 25 TestingPoint(const TestingPoint& point) : x_(point.x_), y_(point.y_) {} in TestingPoint() 27 TestingPoint(float xP, float yP) : x_(xP), y_(yP) {} in TestingPoint() 31 return x_; in GetX() 41 x_ = xP; in SetX() 75 float x_; member in OHOS::Ace::Testing::TestingPoint
|
H A D | testing_point3.h | 25 TestingPoint3(const TestingPoint3& point) : x_(point.x_), y_(point.y_), z_(point.z_) {} in TestingPoint3() 27 TestingPoint3(float xP, float yP, float zP) : x_(xP), y_(yP), z_(zP) {} in TestingPoint3() 31 return x_; in GetX() 46 x_ = xP; in SetX() 60 float x_ = 0.0f; member in OHOS::Ace::Testing::TestingPoint3
|
/foundation/graphic/graphic_3d/3d_widget_adapter/include/data_type/ |
H A D | quaternion.h | 26 Quaternion(float x, float y, float z, float w) : x_(x), y_(y), z_(z), w_(w) {} in Quaternion() 29 return x_; in GetX() 45 x_ = x; in SetX() 61 return (x_ == other.x_) && (y_ == other.y_) && (z_ == other.z_) && (w_ == other.w_); in operator ==() 67 float x_; member
|
H A D | vec3.h | 26 Vec3(float x, float y, float z) : x_(x), y_(y), z_(z) {} in Vec3() 27 float GetX() const { return x_; } in GetX() 30 void SetX(float x) { x_ = x; } in SetX() 37 float x_ = 0.0f; member
|
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/ |
H A D | geometry2d.h | 85 vertex_[0].x_ = x1; in Line() 87 vertex_[1].x_ = x2; in Line() 154 vertexes_[0].x_ = rect.GetLeft(); in Polygon() 157 vertexes_[1].x_ = rect.GetRight(); in Polygon() 160 vertexes_[2].x_ = rect.GetRight(); in Polygon() 163 vertexes_[3].x_ = rect.GetLeft(); in Polygon() 235 vertexes_[0].x_ = rect.GetLeft(); 238 vertexes_[1].x_ = rect.GetRight(); 241 vertexes_[2].x_ = rect.GetRight(); 244 vertexes_[3].x_ [all...] |
H A D | graphic_math.h | 110 Vector2() : x_(0), y_(0) {} in Vector2() 121 x_ = x; in Vector2() 142 T sum = x_ * other.x_; in Dot() 156 return x_ * other.y_ - y_ * other.x_; in Cross() 161 return Vector2(-x_, -y_); in operator -() 166 return Vector2(x_ - other.x_, y_ - other.y_); in operator -() 171 return Vector2(x_ in operator +() 205 T x_; global() member in OHOS::Vector2 220 T x_; global() member 283 T x_; global() member [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/svg/ |
H A D | rosen_render_svg_use.cpp | 30 if (GreatNotEqual(x_.Value(), 0.0) || GreatNotEqual(y_.Value(), 0.0)) { in Paint() 32 { ConvertDimensionToPx(x_, LengthType::HORIZONTAL), ConvertDimensionToPx(y_, LengthType::VERTICAL) }); in Paint() 62 bool translateXY = GreatNotEqual(x_.Value(), 0.0) || GreatNotEqual(y_.Value(), 0.0); in PaintDirectly() 66 ConvertDimensionToPx(x_, LengthType::HORIZONTAL), ConvertDimensionToPx(y_, LengthType::VERTICAL)); in PaintDirectly() 69 ConvertDimensionToPx(x_, LengthType::HORIZONTAL), ConvertDimensionToPx(y_, LengthType::VERTICAL)); in PaintDirectly()
|
/foundation/graphic/graphic_utils_lite/test/ |
H A D | geometry2d_unit_test.cpp | 51 EXPECT_EQ(line->operator[](0).x_, BASE_VALUE); in HWTEST_F() 53 EXPECT_EQ(line->operator[](1).x_, THREEFOLD_VALUE); in HWTEST_F() 71 EXPECT_EQ(line->operator[](0).x_, BASE_VALUE); in HWTEST_F() 73 EXPECT_EQ(line->operator[](1).x_, THREEFOLD_VALUE); in HWTEST_F() 160 EXPECT_EQ(polygon->operator[](1).x_, FIVEFOLD_VALUE); in HWTEST_F() 181 EXPECT_EQ(polygon->operator[](i).x_, BASE_VALUE); in HWTEST_F() 183 EXPECT_EQ(polygon->operator[](i).x_, THREEFOLD_VALUE); in HWTEST_F() 185 EXPECT_EQ(polygon->operator[](i).x_, THREEFOLD_VALUE); in HWTEST_F() 187 EXPECT_EQ(polygon->operator[](i).x_, BASE_VALUE); in HWTEST_F() 229 EXPECT_EQ(out.x_, TWOFOLD_VALU in HWTEST_F() [all...] |
/foundation/window/window_manager/utils/src/ |
H A D | wm_math.cpp | 174 retVal.x_ = Vector3(mat_[0][0], mat_[0][1], mat_[0][2]).Length(); // 2: column2 in GetScale() 212 { trans.x_, trans.y_, 1.0f }, in CreateTranslation() 270 { trans.x_, trans.y_, trans.z_, 1.0f }, in CreateTranslation() 280 trans.x_ = -Vector3::Dot(xaxis, eye); in CreateLookAt() 285 { xaxis.x_, yaxis.x_, zaxis.x_, 0.0f }, in CreateLookAt() 288 { trans.x_, trans.y_, trans.z_, 1.0f } in CreateLookAt() 297 { camera.x_, camera.y_, 0.0f, 1.0f }, in CreatePerspective() 306 retVal.x_ in Transform() [all...] |