/foundation/graphic/graphic_utils_lite/frameworks/ |
D | graphic_math.cpp | 36 float Sin(float angle) in Sin() argument 39 float radian = angle / RADIAN_TO_ANGLE; in Sin() 42 int16_t degree = static_cast<int16_t>(MATH_ROUND(angle)); in Sin() 65 float Cos(float angle) in Cos() argument 68 return cos(angle / RADIAN_TO_ANGLE); in Cos() 70 Sin(QUARTER_IN_DEGREE - angle); in Cos() 106 uint16_t angle; in FastAtan2() local 110 …angle = static_cast<uint16_t>(t * (1 + t2 * (ATAN2_P3 + t2 * (ATAN2_P5 + t2 * ATAN2_P7))) * RADIAN… in FastAtan2() 114 angle = QUARTER_IN_DEGREE - in FastAtan2() 120 angle = SEMICIRCLE_IN_DEGREE + angle; in FastAtan2() [all …]
|
D | transform.cpp | 124 void TransformMap::Rotate(int16_t angle, const Vector2<float>& pivot) in Rotate() argument 126 Rotate(angle, Vector3<float>(pivot.x_, pivot.y_, 0), Vector3<float>(pivot.x_, pivot.y_, 1.0f)); in Rotate() 129 void TransformMap::Rotate(int16_t angle, const Vector3<float>& rotatePivotStart, const Vector3<floa… in Rotate() argument 131 angle_ = angle; in Rotate() 327 void Rotate(const Vector2<int16_t>& point, int16_t angle, const Vector2<int16_t>& pivot, Vector2<in… in Rotate() argument 329 float sinma = Sin(angle); in Rotate() 330 float cosma = Sin(angle + 90); // 90: cos in Rotate() 342 void Rotate(const Line& origLine, int16_t angle, const Vector2<int16_t>& pivot, Line& out) in Rotate() argument 347 Rotate(pt1, angle, pivot, out[1]); // 1: the first point of line in Rotate() 348 Rotate(pt2, angle, pivot, out[2]); // 2: the second point of line in Rotate() [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/mock/ |
D | transform_mock.cpp | 72 void RenderTransform::Rotate(float angle, float x, float y, float z) in Rotate() argument 75 angle, x, y, z); in Rotate() 78 mock->MockRotate(angle, x, y, z); in Rotate() 82 void RenderTransform::RotateX(float angle) in RotateX() argument 84 LOGD("TransformMock RotateX. angle: %{public}f ", angle); in RotateX() 87 mock->MockRotateX(angle); in RotateX() 91 void RenderTransform::RotateY(float angle) in RotateY() argument 93 LOGD("TransformMock RotateY. angle: %{public}f ", angle); in RotateY() 96 mock->MockRotateY(angle); in RotateY() 100 void RenderTransform::RotateZ(float angle) in RotateZ() argument [all …]
|
D | transform_mock.h | 31 void MockRotate(float angle, float x, float y, float z); 32 void MockRotateX(float angle); 33 void MockRotateY(float angle); 34 void MockRotateZ(float angle); 39 void GetRotateSetting(float& angle, float& x, float& y, float& z) const;
|
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/ |
D | trans_affine.h | 93 const TransAffine& Rotate(float angle); 190 static TransAffine TransAffineRotation(float angle) in TransAffineRotation() argument 192 …return TransAffine(std::cos(angle), std::sin(angle), -std::sin(angle), std::cos(angle), 0.0f, 0.0f… in TransAffineRotation() 248 inline const TransAffine& TransAffine::Rotate(float angle) in Rotate() argument 250 float scaleXTemp = data_[0] * std::cos(angle) - data_[3] * std::sin(angle); in Rotate() 251 float shearXTemp = data_[1] * std::cos(angle) - data_[4] * std::sin(angle); in Rotate() 252 float translateXTemp = data_[2] * std::cos(angle) - data_[5] * std::sin(angle); in Rotate() 253 data_[3] = data_[0] * std::sin(angle) + data_[3] * std::cos(angle); in Rotate() 254 data_[4] = data_[1] * std::sin(angle) + data_[4] * std::cos(angle); in Rotate() 255 data_[5] = data_[2] * std::sin(angle) + data_[5] * std::cos(angle); in Rotate()
|
D | transform.h | 201 void Rotate(int16_t angle, const Vector2<float>& pivot); 203 …void Rotate(int16_t angle, const Vector3<float>& rotatePivotStart, const Vector3<float>& rotatePiv… 283 void Rotate(const Vector2<int16_t>& point, int16_t angle, const Vector2<int16_t>& pivot, Vector2<in… 294 void Rotate(const Line& origLine, int16_t angle, const Vector2<int16_t>& pivot, Line& out); 305 void Rotate(const Rect& origRect, int16_t angle, const Vector2<int16_t>& pivot, Polygon& out);
|
/foundation/arkui/ace_engine/frameworks/base/geometry/ |
D | arc.h | 56 void SetStartAngle(double angle) in SetStartAngle() argument 58 startAngle_ = angle; in SetStartAngle() 66 void SetEndAngle(double angle) in SetEndAngle() argument 68 endAngle_ = angle; in SetEndAngle() 76 void Rotate(const Point& point, double angle) in Rotate() argument 78 centerPoint_.Rotate(point, angle); in Rotate() 79 startAngle_ += angle; in Rotate() 80 endAngle_ += angle; in Rotate() 89 void GetPointByAngle(double angle, Point& out) const in GetPointByAngle() argument 93 out.Rotate(centerPoint_, angle); in GetPointByAngle()
|
D | point.h | 87 void Rotate(const Point& center, double angle) in Rotate() argument 89 …double x = (x_ - center.GetX()) * std::cos(angle) - (y_ - center.GetY()) * std::sin(angle) + cente… in Rotate() 90 …double y = (x_ - center.GetX()) * std::sin(angle) + (y_ - center.GetY()) * std::cos(angle) + cente… in Rotate()
|
D | transform_util.h | 73 RotateOperation(float x, float y, float z, float angle) : dx(x), dy(y), dz(z), angle(angle) {} in RotateOperation() 77 NearEqual(angle, other.angle); 82 float angle = 0.0f; member
|
/foundation/arkui/ace_engine/frameworks/core/components/transform/ |
D | transform_component.cpp | 97 void TransformComponent::Rotate(float dx, float dy, float dz, float angle, const AnimationOption& a… in Rotate() argument 101 operation.rotateOperation_ = RotateOperation(dx, dy, dz, angle); in Rotate() 105 void TransformComponent::RotateX(float angle, const AnimationOption& animationOption) in RotateX() argument 107 Rotate(1.0f, 0.0f, 0.0f, angle, animationOption); in RotateX() 110 void TransformComponent::RotateY(float angle, const AnimationOption& animationOption) in RotateY() argument 112 Rotate(0.0f, 1.0f, 0.0f, angle, animationOption); in RotateY() 115 void TransformComponent::RotateZ(float angle, const AnimationOption& animationOption) in RotateZ() argument 117 Rotate(0.0f, 0.0f, 1.0f, angle, animationOption); in RotateZ() 129 void TransformComponent::SkewX(float angle, const AnimationOption& animationOption) in SkewX() argument 131 Skew(angle, 0.0f, animationOption); in SkewX() [all …]
|
D | transform_component.h | 68 …void Rotate(float dx, float dy, float dz, float angle, const AnimationOption& animationOption = An… 69 void RotateX(float angle, const AnimationOption& animationOption = AnimationOption()); 70 void RotateY(float angle, const AnimationOption& animationOption = AnimationOption()); 71 void RotateZ(float angle, const AnimationOption& animationOption = AnimationOption()); 74 void SkewX(float angle, const AnimationOption& = AnimationOption()); 75 void SkewY(float angle, const AnimationOption& = AnimationOption()); 168 void SetRotateTransition(TransitionType type, double x, double y, double z, double angle);
|
D | render_transform.cpp | 86 void RenderTransform::Rotate(float angle, float x, float y, float z) in Rotate() argument 88 if (!NearZero(angle) && !NearZero(fmod(angle, 360.0f))) { in Rotate() 89 Matrix4 rotate = Matrix4::CreateRotate(angle, x, y, z); in Rotate() 98 if (!NearEqual(angle, 0.0) && !NearEqual(z, 0.0)) { in Rotate() 99 UpdateRotateToAccessibilityNode(angle, RotateAxis::AXIS_Z); in Rotate() 104 void RenderTransform::RotateX(float angle) in RotateX() argument 106 Rotate(angle, 1.0f, 0.0f, 0.0f); in RotateX() 109 void RenderTransform::RotateY(float angle) in RotateY() argument 111 Rotate(angle, 0.0f, 1.0f, 0.0f); in RotateY() 114 void RenderTransform::RotateZ(float angle) in RotateZ() argument [all …]
|
D | render_transform.h | 50 void Rotate(float angle, float x, float y, float z); 51 void RotateX(float angle); 52 void RotateY(float angle); 53 void RotateZ(float angle); 203 void UpdateRotateToAccessibilityNode(float angle, RotateAxis rotateAxis);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/gestures/ |
D | rotation_gesture.cpp | 25 RotationGesture::RotationGesture(int32_t fingers, double angle): Gesture(fingers) in RotationGesture() argument 27 if (angle > MAX_ANGLE || angle <= 0) { in RotationGesture() 30 angle_ = angle; in RotationGesture()
|
/foundation/arkui/ace_engine/frameworks/core/components/arc/ |
D | render_arc.cpp | 162 double angle = atan2(position.GetY() - arcRadiusY_, position.GetX() - arcRadiusX_); in GetPositionAngle() local 163 if (angle < startAngle_ - correctOffset) { in GetPositionAngle() 164 angle += M_PI * ARC_RADIUS_TO_DIAMETER; in GetPositionAngle() 166 return angle; in GetPositionAngle() 173 double angle = GetPositionAngle(Offset(point.GetX(), point.GetY()), outArcAngle); in IsInRegion() local 177 if (angle < startAngle_ - outArcAngle || angle > startAngle_ + sweepAngle_ + outArcAngle) { in IsInRegion()
|
/foundation/arkui/ace_engine/frameworks/base/geometry/ng/ |
D | point_t.h | 51 void Rotate(const PointT& center, T angle) in Rotate() argument 53 …T x = (x_ - center.GetX()) * std::cos(angle) - (y_ - center.GetY()) * std::sin(angle) + center.Get… in Rotate() 54 …T y = (x_ - center.GetX()) * std::sin(angle) + (y_ - center.GetY()) * std::cos(angle) + center.Get… in Rotate()
|
/foundation/arkui/ace_engine_lite/frameworks/examples/showcase/src/main/js/default/pages/component/progress/circle/style/ |
D | style.css | 81 start-angle: 0deg; 82 total-angle: 120deg; 103 start-angle: 0deg; 104 total-angle: 360deg; 116 start-angle: 0deg; 117 total-angle: 360deg; 129 start-angle: 10deg; 130 total-angle: 180deg;
|
/foundation/arkui/ui_lite/frameworks/draw/ |
D | draw_label.cpp | 164 float angle = arcTextInfo.startAngle; in DrawArcText() local 185 posX, posY, rotateAngle, angle, in DrawArcText() 205 float& angle, in CalculateAngle() argument 212 …angle += TypedText::GetAngleForArcLen(static_cast<float>(letterWidth), letterHeight, arcTextInfo.r… in CalculateAngle() 222 … rotateAngle = (orientation == TextOrientation::INSIDE) ? angle : (angle - SEMICIRCLE_IN_DEGREE); in CalculateAngle() 227 TypedText::GetArcLetterPos(arcCenter, arcTextInfo.radius, angle, posX, posY); in CalculateAngle() 228 angle += incrementAngle; in CalculateAngle() 236 …rotateAngle = xorFlag ? (angle - SEMICIRCLE_IN_DEGREE - fineTuningAngle) : (angle + fineTuningAng… in CalculateAngle() 237 TypedText::GetArcLetterPos(arcCenter, arcTextInfo.radius, angle, posX, posY); in CalculateAngle() 238 angle = xorFlag ? (angle - incrementAngle) : (angle + incrementAngle); in CalculateAngle()
|
/foundation/arkui/ace_engine/frameworks/core/gestures/ |
D | rotation_gesture.h | 35 RotationGesture(int32_t fingers, double angle) : Gesture(fingers), angle_(angle) {} in RotationGesture() argument
|
/foundation/graphic/graphic_2d/frameworks/bootanimation/data/bootanimation_tool/ |
D | README.md | 26 python raw_maker.py (-m <*.mp4> | -i <directory>) [-o <directory>] [-d <size>] [-r <angle>] [-f] 42 -r <angle>, --rotate <angle>
|
/foundation/arkui/ace_engine_lite/frameworks/examples/showcase/src/main/js/default/pages/component/progress/circle/attr/ |
D | attr.css | 74 start-angle: 0deg; 75 total-angle: 360deg; 87 start-angle: 0deg; 88 total-angle: 360deg;
|
/foundation/arkui/ace_engine/frameworks/core/components/test/json/ |
D | transform_creator.cpp | 76 float angle = json.GetValue(ANGLE_VALUE)->GetDouble(); in performCreateFromJson() local 79 result.Rotate(angle, px, py, pz); in performCreateFromJson() 86 float angle = json.GetValue(ANGLE_VALUE)->GetDouble(); in performCreateFromJson() local 87 result = Matrix4::CreateRotate(angle, 0.0f, 0.0f, 1.0f); in performCreateFromJson()
|
/foundation/arkui/ui_lite/frameworks/common/ |
D | typed_text.cpp | 105 float angle = arcTextInfo.startAngle; in GetArcTextRect() local 120 …angle += xorFlag ? GetAngleForArcLen(static_cast<float>(letterWidth), letterHeight, arcTextInfo.ra… in GetArcTextRect() 123 GetArcLetterPos(arcCenter, arcTextInfo.radius, angle, posX, posY); in GetArcTextRect() 137 (orientation == TextOrientation::INSIDE) ? angle : (angle - SEMICIRCLE_IN_DEGREE); in GetArcTextRect() 145 angle += incrementAngle; in GetArcTextRect() 146 GetArcLetterPos(arcCenter, arcTextInfo.radius, angle, posX, posY); in GetArcTextRect() 162 float angle = static_cast<float>(len * SEMICIRCLE_IN_DEGREE) / (UI_PI * realRadius); in GetAngleForArcLen() local 163 return (direct == TEXT_DIRECT_LTR) ? angle : -angle; in GetAngleForArcLen() 182 void TypedText::GetArcLetterPos(const Point& arcCenter, uint16_t radius, float angle, float& posX, … in GetArcLetterPos() argument 184 posX = arcCenter.x + (static_cast<float>(radius) * Sin(angle)); in GetArcLetterPos() [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
D | moon_progress_modifier.cpp | 79 double angle = (modifier->value_->Get() / modifier->maxValue_->Get()) * 1; in SetValue() local 80 if (NearEqual(std::abs(angle - FLOAT_ONE_ZERO), EPSLION)) { in SetValue() 153 double angle = (value_->Get() / maxValue_->Get()) * totalDegree; in PaintSquareMoon() local 168 if (angle <= FLOAT_ZERO_FIVE) { in PaintSquareMoon() 169 double progressOffset = smallRadius_ - smallRadius_ * angle / FLOAT_ZERO_FIVE; in PaintSquareMoon() 177 double progressOffset = smallRadius_ * (angle - FLOAT_ZERO_FIVE) / FLOAT_ZERO_FIVE; in PaintSquareMoon()
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/indexer/ |
D | render_indexer_item.h | 86 void SetRotate(double angle) in SetRotate() argument 90 rotateAngle_ = angle; in SetRotate() 92 rotate->RotateZ(angle); in SetRotate()
|