/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/ |
H A D | point3.h | 62 scalar z_; 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_() function 69 inline Point3::Point3(scalar x, scalar y, scalar z) noexcept : x_(x), y_(y), z_(z) {} in z_() function 83 return z_; in GetZ() 98 z_ = z; in SetZ() 105 z_ += p.z_; in operator +=() 113 z_ -= p.z_; 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() 39 return z_; in GetZ() 55 z_ = z; in SetZ() 66 auto z = this->z_ + q.z_; 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_ in operator *() 109 double z_ = 0.0; global() member in OHOS::Ace::Quaternion [all...] |
H A D | vec3.h | 32 z_ = AnimatableFloat(z, option); in Vec3() 38 z_ = z; in Vec3() 50 z_.SetContextAndCallback(context, std::forward<RenderNodeAnimationCallback>(callback)); in SetContextAndCallbacks() 65 return z_.GetValue(); in GetZ() 85 z_ = AnimatableFloat(z); in SetZ() 92 && NearEqual(z_.GetValue(), vec.z_.GetValue()); in operator ==() 105 z_ = AnimatableFloat(newValue.GetZ(), animationOption_); in operator =() 112 AnimatableFloat z_; member in OHOS::Ace::Vec3
|
H A D | quaternion.cpp | 35 double cosHalfAngle = from.x_ * to.x_ + from.y_ * to.y_ + from.z_ * to.z_ + from.w_ * to.w_; in Slerp()
|
/foundation/arkui/ace_engine/test/mock/core/rosen/ |
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() 41 return z_; in GetZ() 56 z_ = zP; in SetZ() 62 float z_ = 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() 37 return z_; in GetZ() 53 z_ = z; in SetZ() 61 return (x_ == other.x_) && (y_ == other.y_) && (z_ == other.z_) && (w_ == other.w_); in operator ==() 69 float z_; member
|
H A D | vec3.h | 26 Vec3(float x, float y, float z) : x_(x), y_(y), z_(z) {} in Vec3() 29 float GetZ() const { return z_; } in GetZ() 32 void SetZ(float z) { z_ = z; } in SetZ() 39 float z_ = 0.0f; member
|
/foundation/window/window_manager/utils/include/ |
H A D | wm_math.h | 116 float x_, y_, z_; member 117 Vector3() : x_(0.0f), y_(0.0f), z_(0.0f) {} in Vector3() 119 : x_(inX), y_(inY), z_(inZ) {} in Vector3() 122 return Vector3 { -v.x_, -v.y_, -v.z_ }; in operator -() 126 return Vector3 { a.x_ + b.x_, a.y_ + b.y_, a.z_ + b.z_ }; in operator +() 130 return Vector3 { a.x_ - b.x_, a.y_ - b.y_, a.z_ - b.z_ }; in operator -() 135 return Vector3(vec.x_ * scalar, vec.y_ * scalar, vec.z_ * scalar); in operator *() 140 return Vector3(vec.x_ * scalar, vec.y_ * scalar, vec.z_ * scala in operator *() [all...] |
/foundation/window/window_manager/utils/src/ |
H A D | wm_math.cpp | 176 retVal.z_ = Vector3(mat_[2][0], mat_[2][1], mat_[2][2]).Length(); // 2: row2 in GetScale() 270 { trans.x_, trans.y_, trans.z_, 1.0f }, in CreateTranslation() 282 trans.z_ = -Vector3::Dot(zaxis, eye); in CreateLookAt() 287 { xaxis.z_, yaxis.z_, zaxis.z_, 0.0f }, in CreateLookAt() 288 { trans.x_, trans.y_, trans.z_, 1.0f } in CreateLookAt() 295 { std::abs(camera.z_), 0.0f, 0.0f, 0.0f }, in CreatePerspective() 296 { 0.0f, std::abs(camera.z_), 0.0f, 0.0f }, in CreatePerspective() 316 vec.z_ * ma in Transform() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui_effect/ |
H A D | utils.h | 29 return (ROSEN_GE(para.x_, 0.f) && ROSEN_GE(para.y_, 0.f) && ROSEN_GE(para.z_, 0.f) && ROSEN_GE(para.w_, 0.f)) || in IsParaSameSign() 30 (ROSEN_LE(para.x_, 0.f) && ROSEN_LE(para.y_, 0.f) && ROSEN_LE(para.z_, 0.f) && ROSEN_LE(para.w_, 0.f)); in IsParaSameSign() 41 std::clamp(para.z_, limits.first, limits.second)); 47 std::clamp(para.z_, limits.first, limits.second), std::clamp(para.w_, limits.first, limits.second));
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/animation/ |
H A D | rs_transition_effect.cpp | 68 if (scale.x_ == 1.0f && scale.y_ == 1.0f && scale.z_ == 1.0f) { in Scale() 72 auto scaleEffect = std::make_shared<RSTransitionScale>(scale.x_, scale.y_, scale.z_); in Scale() 80 if (translate.x_ == 0.0f && translate.y_ == 0.0f && translate.z_ == 0.0f) { in Translate() 84 auto translateEffect = std::make_shared<RSTransitionTranslate>(translate.x_, translate.y_, translate.z_); in Translate() 97 auto rotateEffect = std::make_shared<RSTransitionRotate>(axisAngle.x_, axisAngle.y_, axisAngle.z_, angleRadian); in Rotate()
|
/foundation/window/window_manager/utils/test/unittest/ |
H A D | wm_math_test.cpp | 91 Matrix4 transformMat = CreateScale(scale.x_, scale.y_, scale.z_); in HWTEST_F() 115 ASSERT_EQ(expect.z_, result.z_); in HWTEST_F() 120 ASSERT_EQ(vec.z_, result.z_); in HWTEST_F()
|
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/ |
H A D | graphic_math.h | 222 T z_; member 232 Vector3() : x_(0), y_(0), z_(1) {} in Vector3() 268 return (x_ == other.x_) && (y_ == other.y_) && (z_ == other.z_); in operator ==() 285 T z_; member 296 Vector4() : x_(0), y_(0), z_(0), w_(1) {} in Vector4() 325 return (x_ == other.x_) && (y_ == other.y_) && (z_ == other.z_) && (w_ == other.w_); in operator ==() 877 (pivot2.z_ - pivot1.z_) * (pivot in Rotate() [all...] |
/foundation/graphic/graphic_utils_lite/frameworks/ |
H A D | transform.cpp | 145 translate_ = Matrix4<float>::Translate(Vector3<float>(trans.x_, trans.y_, trans.z_)); in Translate() 186 angle_, Vector3<float>(rotatePivotStart_.x_ + rectX, rotatePivotStart_.y_ + rectY, rotatePivotStart_.z_), in GetOrigPoint() 187 Vector3<float>(rotatePivotEnd_.x_ + rectX, rotatePivotEnd_.y_ + rectY, rotatePivotEnd_.z_)); in GetOrigPoint() 188 scale_ = Matrix4<float>::Scale(Vector3<float>(1.0f / scaleCoeff_.x_, 1.0f / scaleCoeff_.y_, scaleCoeff_.z_), in GetOrigPoint() 189 Vector3<float>(scalePivot_.x_ + rectX, scalePivot_.y_ + rectY, scalePivot_.z_)); in GetOrigPoint() 214 Vector3<float>(scalePivot_.x_ + rectX, scalePivot_.y_ + rectY, scalePivot_.z_)); in GetOrigPoint() 253 rotatePivotStart_.z_), in UpdateMap() 254 Vector3<float>(rotatePivotEnd_.x_ + rect_.GetX(), rotatePivotEnd_.y_ + rect_.GetY(), rotatePivotEnd_.z_)); in UpdateMap() 257 Vector3<float>(scalePivot_.x_ + rect_.GetX(), scalePivot_.y_ + rect_.GetY(), scalePivot_.z_)); in UpdateMap()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | graphic_modifier.cpp | 56 radii[SkRRect::kLowerRight_Corner].set(radius_->Get().z_, radius_->Get().z_); in MakeRRect() 70 radii[RSRoundRect::BOTTOM_RIGHT_POS] = {radius_->Get().z_, radius_->Get().z_}; in MakeRRect()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui/ |
H A D | rs_texture_export.cpp | 54 virtualRootNode_->SetBounds({-bounds.x_, -bounds.y_, bounds.z_, bounds.w_}); in DoTextureExport() 56 virtualRootNode_->SetFrame({-frame.x_, -frame.y_, frame.z_, frame.w_}); in DoTextureExport()
|
H A D | rs_canvas_node.cpp | 164 return frame.z_ <= 0.f ? GetStagingProperties().GetBounds().z_ : frame.z_; in GetPaintWidth()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/ |
H A D | rs_obj_geometry.h | 50 RSObjGeometry() : x_(-INFINITY), y_(-INFINITY), z_(0.0f), width_(-INFINITY), height_(-INFINITY) {} in RSObjGeometry() 64 z_ = z; in SetZ() 249 return z_; in GetZ() 332 SetZ(geo.z_); in operator =() 341 float z_; member in OHOS::Rosen::RSObjGeometry
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/ |
H A D | rs_animation_trace_utils.cpp | 62 "z:" + std::to_string(property->Get().z_) + "," + in ParseRenderPropertyVauleInner() 89 "z:" + std::to_string(property->Get().z_) + "," + in ParseRenderPropertyVauleInner() 99 "z:" + std::to_string(property->Get().z_.AsRgbaInt()) + "," + in ParseRenderPropertyVauleInner()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/modifier/ |
H A D | rs_render_property.cpp | 384 out += " right:" + std::to_string(v4.z_); in Dump() 391 out += std::to_string(v4.z_) + " w:"; in Dump() 411 ss << "[left:" << v4f.x_ << " top:" << v4f.y_ << " right:" << v4f.z_ << " bottom:" << v4f.w_ << + "]"; in Dump() 417 << " bottomRight:" << v4f.z_ << " bottomLeft:" << v4f.w_ << + "]"; in Dump() 421 ss << "[x:" << v4f.x_ << " y:" << v4f.y_ << " width:" << v4f.z_ << " height:" << v4f.w_ << + "]"; in Dump() 425 ss << "[x:" << v4f.x_ << " y:" << v4f.y_ << " z:" << v4f.z_ << " w:" << v4f.w_ << + "]"; in Dump() 438 ss << "[x:" << q.x_ << " y:" << q.y_ << " z:" << q.z_ << " w:" << q.w_ << + "]"; in Dump() 482 v4Color.z_.Dump(out); in Dump()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/ |
H A D | render_service_client_pointer_window_demo.cpp | 50 x, y, surfaceNode->GetStagingProperties().GetBounds().z_, surfaceNode->GetStagingProperties().GetBounds().w_); in MoveTo() 101 sptr<SurfaceBuffer> buffer = GetSurfaceBuffer(ohosSurface, surfaceNode->GetStagingProperties().GetBounds().z_, in InitSurfaceStyle()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/property/ |
H A D | rs_point_light_manager.cpp | 174 lightPos.z_ = lightPosition.z_; in CalculateLightPosForIlluminated()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/unittest/ui/ |
H A D | rs_surface_node_test.cpp | 93 EXPECT_TRUE(ROSEN_EQ(bounds.z_, TestSrc::limitNumber::floatLimit[2]));
in HWTEST_F() 111 EXPECT_TRUE(ROSEN_EQ(bounds.z_, TestSrc::limitNumber::floatLimit[2]));
in HWTEST_F() 129 EXPECT_TRUE(ROSEN_EQ(bounds.z_, TestSrc::limitNumber::floatLimit[1]));
in HWTEST_F() 148 EXPECT_TRUE(ROSEN_EQ(bounds.z_, TestSrc::limitNumber::floatLimit[2]));
in HWTEST_F() 167 EXPECT_TRUE(ROSEN_EQ(bounds.z_, TestSrc::limitNumber::floatLimit[2]));
in HWTEST_F() 186 EXPECT_TRUE(ROSEN_EQ(bounds.z_, TestSrc::limitNumber::floatLimit[1]));
in HWTEST_F() 201 EXPECT_TRUE(ROSEN_EQ(bounds.z_, TestSrc::limitNumber::floatLimit[1]));
in HWTEST_F() 215 EXPECT_TRUE(ROSEN_EQ(bounds.z_, TestSrc::limitNumber::floatLimit[2]));
in HWTEST_F() 229 EXPECT_TRUE(ROSEN_EQ(bounds.z_, TestSrc::limitNumber::floatLimit[3]));
in HWTEST_F() 243 EXPECT_TRUE(ROSEN_EQ(bounds.z_, TestSr in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/drawable/ |
H A D | rs_property_drawable_utils.cpp | 693 builder->SetUniform("ubo_rate", params.rates_.z_); in MakeDynamicBrightnessBlender() 698 builder->SetUniform("ubo_posb", params.posCoeff_.z_); in MakeDynamicBrightnessBlender() 701 builder->SetUniform("ubo_negb", params.negCoeff_.z_); in MakeDynamicBrightnessBlender() 778 float thresholdLow = aiInvert->z_ - aiInvert->w_; in DrawBinarization() 779 float thresholdHigh = aiInvert->z_ + aiInvert->w_; in DrawBinarization() 798 std::isinf(pixelStretch->z_) || std::isinf(pixelStretch->w_)) { in DrawPixelStretch() 842 bounds.GetRight() + pixelStretch->z_, bounds.GetBottom() + pixelStretch->w_); in DrawPixelStretch() 888 if (pixelStretch->x_ > EPS || pixelStretch->y_ > EPS || pixelStretch->z_ > EPS || pixelStretch->w_ > EPS) { in DrawPixelStretch() 1081 Drawing::Rect rect = Drawing::Rect(0, 0, boundsRect.z_, boundsRect.w_); in GetInvertBackgroundColor() 1295 if (pixelStretch->x_ > EPS || pixelStretch->y_ > EPS || pixelStretch->z_ > EP in RSFilterSetPixelStretch() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_border.cpp | 144 if (color.x_ == color.y_ && color.x_ == color.z_ && color.x_ == color.w_) { in SetColorFour() 147 colors_ = { color.x_, color.y_, color.z_, color.w_ }; in SetColorFour() 152 if (width.x_ == width.y_ && width.x_ == width.z_ && width.x_ == width.w_) { in SetWidthFour() 155 widths_ = { width.x_, width.y_, width.z_, width.w_ }; in SetWidthFour() 160 if (style.x_ == style.y_ && style.x_ == style.z_ && style.x_ == style.w_) { in SetStyleFour() 164 static_cast<BorderStyle>(style.z_), static_cast<BorderStyle>(style.w_) }; in SetStyleFour() 169 radius_ = { radius.x_, radius.y_, radius.z_, radius.w_ }; in SetRadiusFour() 174 if (dashWidth.x_ == dashWidth.y_ && dashWidth.x_ == dashWidth.z_ && dashWidth.x_ == dashWidth.w_) { in SetDashWidthFour() 177 dashWidth_ = { dashWidth.x_, dashWidth.y_, dashWidth.z_, dashWidth.w_ }; in SetDashWidthFour() 182 if (dashGap.x_ == dashGap.y_ && dashGap.x_ == dashGap.z_ in SetDashGapFour() [all...] |