Home
last modified time | relevance | path

Searched refs:y_ (Results 1 - 25 of 183) sorted by relevance

12345678

/foundation/arkui/ace_engine/frameworks/base/geometry/ng/
H A Doffset_t.h33 OffsetT(T x, T y) : x_(x), y_(y) {} in OffsetT()
39 y_ = crossOffset; in OffsetT()
42 y_ = mainOffset; in OffsetT()
49 y_ = 0; in Reset()
59 return y_; in GetY()
64 return axis == Axis::HORIZONTAL ? x_ : y_; in GetMainOffset()
69 return axis == Axis::HORIZONTAL ? y_ : x_; in GetCrossOffset()
75 T dy = y_ - offset.y_; in GetDistance()
86 y_ in SetY()
165 ss << "Offset (" << std::fixed << std::setprecision(precision) << x_ << ", " << y_ << ")"; ToString() local
[all...]
H A Dradius.h27 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()
48 return y_; in GetY()
60 y_ = Dimension(y); in SetY()
65 return Radius(x_ + radius.x_, y_ + radius.y_); in operator +()
70 return Radius(x_ - radius.x_, y_ - radius.y_); in operator -()
97 Dimension y_; global() member in OHOS::Ace::NG::final
[all...]
H A Dpoint_t.h29 PointT(T x, T y) : x_(x), y_(y) {} in PointT()
38 return y_; in GetY()
48 y_ = y; in SetY()
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()
56 y_ = y; 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_ - PointT.y_); in operator -()
88 ss << "Point (" << std::fixed << std::setprecision(precision) << x_ << ", " << y_ << ")"; ToString() local
[all...]
H A Drect_t.h58 y_ = 0; in Reset()
66 y_ = y; in SetRect()
80 y_ *= scale; in ApplyScale()
88 y_ = round(y_ * scale); in ApplyScaleAndRound()
100 return GreatNotEqual(height_, 0) ? y_ : y_ + height_; in Top()
110 return GreatNotEqual(height_, 0) ? y_ + height_ : y_; in Bottom()
120 return y_; in GetY()
381 ss << "RectT (" << std::fixed << std::setprecision(precision) << x_ << ", " << y_ << ") - ["; ToString() local
425 ss << "[" << std::fixed << std::setprecision(precision) << x_ << ", " << y_ << "],["; ToBounds() local
449 T y_ = 0; global() member in OHOS::Ace::NG::RectT
[all...]
/foundation/graphic/graphic_utils_lite/frameworks/
H A Dgeometry2d.cpp27 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_cast<int32_t>(bA.x_) * bB.y_ - static_cast<int32_t>(bA.y_) * bB.x_); in Intersect()
34 int32_t yNum = (static_cast<int32_t>(aA.x_) * aB.y_ - static_cast<int32_t>(aA.y_) * a in Intersect()
[all...]
H A Dtransform.cpp72 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_, trans.y_, in Translate()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/
H A Dpoint.h69 scalar y_; 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_() function
76 inline PointF::PointF(scalar x, scalar y) noexcept : x_(x), y_(y) {} in y_() function
85 return y_; in GetY()
95 y_ = y; in SetY()
101 y_ = y; in Set()
106 return (0 == x_) && (0 == y_); in IsZero()
112 y_ += y; in Offset()
118 y_ in operator +=()
234 int y_; global() member in OHOS::Rosen::Drawing::PointI
239 inline PointI::PointI(const PointI& p) noexcept : x_(p.GetX()), y_(p.GetY()) {} y_() function
241 inline PointI::PointI(int x, int y) noexcept : x_(x), y_(y) {} y_() function
[all...]
H A Dpoint3.h61 scalar y_; 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_()
78 return y_; in GetY()
93 y_ = y; in SetY()
104 y_ += p.y_; in operator +=()
112 y_ -= p.y_; in operator -=()
[all...]
/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Dquaternion.h26 Quaternion(double x, double y, double z, double w) : x_(x), y_(y), z_(z), w_(w) {} in Quaternion()
35 return y_; in GetY()
51 y_ = y; in SetY()
65 auto y = this->y_ + q.y_; 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_ * q.y_ in operator *()
108 double y_ = 0.0; global() member in OHOS::Ace::Quaternion
[all...]
H A Dpoint.h30 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()
44 return y_; in GetY()
54 y_ = y; in SetY()
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()
92 y_ = y; in Rotate()
97 return Point(x_ - offset.GetX(), y_ in operator -()
122 double y_ = 0.0; global() member in OHOS::Ace::Point
[all...]
H A Drect.h46 y_ = y; in SetRect()
60 y_ *= scale; in ApplyScale()
68 y_ = round(y_ * scale.Height()); in ApplyScaleAndRound()
80 return GreatNotEqual(height_, 0.0) ? y_ : y_ + height_; in Top()
90 return GreatNotEqual(height_, 0.0) ? y_ + height_ : y_; in Bottom()
117 y_ = offset.GetY(); in SetOffset()
122 return Offset(x_, y_); in GetOffset()
367 ss << "Rect (" << std::fixed << std::setprecision(2) << x_ << ", " << y_ << ") - ["; ToString() local
387 ss << "[" << std::fixed << std::setprecision(2) << x_ << ", " << y_ << "]["; ToBounds() local
411 double y_ = 0.0; global() member in OHOS::Ace::Rect
[all...]
H A Dvec3.h31 y_ = AnimatableFloat(y, option); in Vec3()
37 y_ = y; in Vec3()
49 y_.SetContextAndCallback(context, std::forward<RenderNodeAnimationCallback>(callback)); in SetContextAndCallbacks()
60 return y_.GetValue(); in GetY()
80 y_ = AnimatableFloat(y); in SetY()
91 && NearEqual(y_.GetValue(), vec.y_.GetValue()) in operator ==()
104 y_ = AnimatableFloat(newValue.GetY(), animationOption_); in operator =()
111 AnimatableFloat y_; member in OHOS::Ace::Vec3
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dradius.h31 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()
39 y_.SetContextAndCallback(context, callback); in SetContextAndCallback()
45 y_.SetValue(round(y_.Value() * scale)); in ApplyScaleAndRound()
50 return x_.IsValid() && y_.IsValid(); in IsValid()
55 return x_.IsValid() || y_.IsValid(); in HasValue()
65 return y_; in GetY()
75 y_ in SetY()
115 AnimatableDimension y_; global() member in OHOS::Ace::final
[all...]
/foundation/window/window_manager/utils/include/
H A Dwm_math.h89 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_ + y_ * y_); in LengthSq()
116 float x_, y_, z_; global() member
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/
H A Drs_particle_noise_field.cpp28 (point.y_ >= fieldCenter_.y_ - height * HALF) && (point.y_ < fieldCenter_.y_ + height * HALF)); in IsPointInField()
31 double normY = (point.y_ - fieldCenter_.y_) * (point.y_ - fieldCenter_.y_); in IsPointInField()
41 if (ROSEN_EQ(direction.x_, 0.f) && ROSEN_EQ(direction.y_, 0.f)) { in CalculateDistanceToRectangleEdge()
47 float top = center.y_ in CalculateDistanceToRectangleEdge()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/
H A Dshape_view_box.h36 return y_; in Top()
56 y_ = top; in SetTop()
76 y_ = shapeViewBox.y_; 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 !=()
96 Dimension y_ = Dimension(-1.0); member in OHOS::Ace::NG::final
/foundation/arkui/ace_engine/test/mock/core/rosen/
H A Dtesting_point.h25 TestingPoint(const TestingPoint& point) : x_(point.x_), y_(point.y_) {} in TestingPoint()
27 TestingPoint(float xP, float yP) : x_(xP), y_(yP) {} in TestingPoint()
36 return y_; in GetY()
46 y_ = yP; in SetY()
76 float y_; member in OHOS::Ace::Testing::TestingPoint
H A Dtesting_point3.h25 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()
36 return y_; in GetY()
51 y_ = yP; in SetY()
61 float y_ = 0.0f; member in OHOS::Ace::Testing::TestingPoint3
/foundation/graphic/graphic_3d/3d_widget_adapter/include/data_type/
H A Dquaternion.h26 Quaternion(float x, float y, float z, float w) : x_(x), y_(y), z_(z), w_(w) {} in Quaternion()
33 return y_; in GetY()
49 y_ = y; in SetY()
61 return (x_ == other.x_) && (y_ == other.y_) && (z_ == other.z_) && (w_ == other.w_); in operator ==()
68 float y_; member
H A Dvec3.h26 Vec3(float x, float y, float z) : x_(x), y_(y), z_(z) {} in Vec3()
28 float GetY() const { return y_; } in GetY()
31 void SetY(float y) { y_ = y; } in SetY()
38 float y_ = 0.0f; member
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/
H A Dgeometry2d.h86 vertex_[0].y_ = y1; in Line()
88 vertex_[1].y_ = y2; in Line()
155 vertexes_[0].y_ = rect.GetTop(); in Polygon()
158 vertexes_[1].y_ = rect.GetTop(); in Polygon()
161 vertexes_[2].y_ = rect.GetBottom(); in Polygon()
164 vertexes_[3].y_ = rect.GetBottom(); in Polygon()
236 vertexes_[0].y_ = rect.GetTop();
239 vertexes_[1].y_ = rect.GetTop();
242 vertexes_[2].y_ = rect.GetBottom();
245 vertexes_[3].y_
[all...]
H A Dgraphic_math.h110 Vector2() : x_(0), y_(0) {} in Vector2()
122 y_ = y; in Vector2()
143 sum += y_ * other.y_; 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_ + other.x_, y_ in operator +()
206 T y_; global() member in OHOS::Vector2
221 T y_; global() member
284 T y_; global() member
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/svg/
H A Drosen_render_svg_use.cpp30 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 Dgeometry2d_unit_test.cpp52 EXPECT_EQ(line->operator[](0).y_, TWOFOLD_VALUE); in HWTEST_F()
54 EXPECT_EQ(line->operator[](1).y_, FOURFOLD_VALUE); in HWTEST_F()
72 EXPECT_EQ(line->operator[](0).y_, TWOFOLD_VALUE); in HWTEST_F()
74 EXPECT_EQ(line->operator[](1).y_, FOURFOLD_VALUE); in HWTEST_F()
161 EXPECT_EQ(polygon->operator[](2).y_, FIVEFOLD_VALUE); in HWTEST_F()
182 EXPECT_EQ(polygon->operator[](i++).y_, TWOFOLD_VALUE); in HWTEST_F()
184 EXPECT_EQ(polygon->operator[](i++).y_, TWOFOLD_VALUE); in HWTEST_F()
186 EXPECT_EQ(polygon->operator[](i++).y_, FOURFOLD_VALUE); in HWTEST_F()
188 EXPECT_EQ(polygon->operator[](i++).y_, FOURFOLD_VALUE); in HWTEST_F()
230 EXPECT_EQ(out.y_, TWOFOLD_VALU in HWTEST_F()
[all...]
/foundation/window/window_manager/utils/src/
H A Dwm_math.cpp175 retVal.y_ = Vector3(mat_[1][0], mat_[1][1], mat_[1][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()
281 trans.y_ = -Vector3::Dot(yaxis, eye); in CreateLookAt()
286 { xaxis.y_, yaxis.y_, zaxis.y_, 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_ = vec.x_ * mat.mat_[0][0] + vec.y_ * ma in Transform()
[all...]

Completed in 11 milliseconds

12345678