Home
last modified time | relevance | path

Searched refs:Vector2 (Results 1 – 25 of 44) sorted by relevance

12

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/
H A Drs_vector2.h72 Vector2<T>::Vector2() in Vector2() function
79 Vector2<T>::Vector2(T x, T y) in Vector2() function
86 Vector2<T>::Vector2(const T* v) in Vector2() function
93 Vector2<T>::~Vector2() in ~Vector2()
132 Vector2<T> Vector2<T>::operator-(const Vector2<T>& other) const
143 Vector2<T> Vector2<T>::operator+(const Vector2<T>& other) const
171 Vector2<T> Vector2<T>::operator*(const Vector2<T>& other) const
178 Vector2<T>& Vector2<T>::operator*=(const Vector2<T>& other)
187 Vector2<T>& Vector2<T>::operator+=(const Vector2<T>& other)
195 Vector2<T>& Vector2<T>::operator-=(const Vector2<T>& other)
[all …]
H A Drs_matrix3.h69 Matrix3 Translate(const Vector2<T>& vec) const;
72 Matrix3 Scale(const Vector2<T>& vec) const;
73 Matrix3 Scale(const Vector2<T>& vec, T pivotx, T pivoty) const;
429 Matrix3<T> Matrix3<T>::Translate(const Vector2<T>& vec) const in Translate()
485 Matrix3<T> Matrix3<T>::Scale(const Vector2<T>& vec) const in Scale()
500 Matrix3<T> Matrix3<T>::Scale(const Vector2<T>& vec, T pivotx, T pivoty) const in Scale()
/ohos5.0/foundation/multimodalinput/input/util/common/include/
H A Dmmi_vector2.h72 Vector2<T>::Vector2() in Vector2() function
76 Vector2<T>::Vector2(T x, T y) in Vector2() function
83 Vector2<T>::Vector2(const T* v) in Vector2() function
90 Vector2<T>::~Vector2() in ~Vector2()
119 Vector2<T> Vector2<T>::operator-() const
129 Vector2<T> Vector2<T>::operator-(const Vector2<T>& other) const
140 Vector2<T> Vector2<T>::operator+(const Vector2<T>& other) const
168 Vector2<T> Vector2<T>::operator*(const Vector2<T>& other) const
175 Vector2<T>& Vector2<T>::operator*=(const Vector2<T>& other)
184 Vector2<T>& Vector2<T>::operator+=(const Vector2<T>& other)
[all …]
H A Dmmi_matrix3.h71 Matrix3 Translate(const Vector2<T>& vec) const;
74 Matrix3 Scale(const Vector2<T>& vec) const;
75 Matrix3 Scale(const Vector2<T>& vec, T pivotx, T pivoty) const;
443 Matrix3<T> Matrix3<T>::Translate(const Vector2<T>& vec) const in Translate()
499 Matrix3<T> Matrix3<T>::Scale(const Vector2<T>& vec) const in Scale()
514 Matrix3<T> Matrix3<T>::Scale(const Vector2<T>& vec, T pivotx, T pivoty) const in Scale()
/ohos5.0/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/
H A Dtransform.h201 void Rotate(int16_t angle, const Vector2<float>& pivot);
213 void Scale(const Vector2<float>& scale, const Vector2<float>& pivot);
217 void Translate(const Vector2<int16_t>& trans);
221 void Translate(const Vector2<float>& trans);
225 …void Shear(const Vector2<float>& shearX, const Vector2<float>& shearY, const Vector2<float>& shear…
233 void SetCameraPosition(const Vector2<float>& position);
258 Vector2<float> cameraPosition_ = {0, 0};
263 Vector2<float> shearX_ = {0, 0};
264 Vector2<float> shearY_ = {0, 0};
265 Vector2<float> shearZ_ = {0, 0};
[all …]
H A Dgeometry2d.h68 Line(const Vector2<int16_t>& a, const Vector2<int16_t>& b) in Line()
106 Vector2<int16_t>& operator[](uint8_t index)
119 const Vector2<int16_t> operator[](uint8_t index) const
125 Vector2<int16_t> vertex_[2]; /* 2: two vertexes of the line */
178 Polygon(const Vector2<int16_t>* vertexes, const uint8_t vertexNum);
220 const Vector2<int16_t> operator[](uint8_t index) const
225 Vector2<int16_t>& operator[](uint8_t index)
254 Vector2<int16_t> vertexes_[MAX_VERTEX_NUM]; /* the vertexes of polygon */
267 bool Intersect(const Line& a, const Line& b, Vector2<int16_t>& out);
307 void Clip(const Line& line, const Polygon& poly, Vector2<int16_t>* pOut, uint8_t* pNum);
H A Dgraphic_math.h119 Vector2(T x, T y) in Vector2() function
131 ~Vector2() {} in ~Vector2()
164 Vector2 operator-(const Vector2<T>& other) const
169 Vector2 operator+(const Vector2<T>& other) const
184 Vector2& operator=(const Vector2& other)
191 Vector2& operator+=(const Vector2& other)
198 Vector2& operator-=(const Vector2& other)
417 static Matrix3 Scale(const Vector2<T>& scale, const Vector2<T>& fixed);
587 Matrix3<T> Matrix3<T>::Scale(const Vector2<T>& scale, const Vector2<T>& fixed) in Scale()
701 …static Matrix4<T> Shear(const Vector2<T>& shearX, const Vector2<T>& shearY, const Vector2<T>& shea…
[all …]
/ohos5.0/foundation/graphic/graphic_utils_lite/test/
H A Dgraphic_math_unit_test.cpp103 Vector2<uint16_t>* vector1 = new Vector2<uint16_t>(POINT1.x, POINT1.y);
108 Vector2<uint16_t>* vector2 = new Vector2<uint16_t>(POINT2.x, POINT2.y);
130 Vector2<uint16_t>* vector1 = new Vector2<uint16_t>(POINT1.x, POINT1.y);
135 Vector2<uint16_t>* vector2 = new Vector2<uint16_t>(POINT2.x, POINT2.y);
157 Vector2<uint16_t>* vector1 = new Vector2<uint16_t>(POINT1.x, POINT1.y);
177 Vector2<uint16_t>* vector1 = new Vector2<uint16_t>(POINT1.x, POINT1.y);
182 Vector2<uint16_t>* vector2 = new Vector2<uint16_t>(POINT2.x, POINT2.y);
204 Vector2<uint16_t>* vector1 = new Vector2<uint16_t>(POINT1.x, POINT1.y);
209 Vector2<uint16_t>* vector2 = new Vector2<uint16_t>(POINT2.x, POINT2.y);
231 Vector2<uint16_t>* vector1 = new Vector2<uint16_t>(POINT1.x, POINT1.y);
[all …]
H A Dgeometry2d_unit_test.cpp86 Vector2<int16_t> vertexes[VECTOR2_SIZE] =
111 Vector2<int16_t> vertexes[VECTOR2_SIZE] =
152 Vector2<int16_t> vertexes[VECTOR2_SIZE] =
202 Vector2<int16_t> pt11 = { 0, TWOFOLD_VALUE };
209 Vector2<int16_t> pt21 = { TWOFOLD_VALUE, 0 };
217 Vector2<int16_t> pt31 = { 0, 0 };
226 Vector2<int16_t> out;
245 Vector2<int16_t> pt11 = { 0, TWOFOLD_VALUE };
252 Vector2<int16_t> pt21 = { TWOFOLD_VALUE, 0 };
260 Vector2<int16_t> pt31 = { 0, 0 };
[all …]
/ohos5.0/foundation/window/window_manager/utils/include/
H A Dwm_math.h88 struct Vector2 { struct
90 Vector2() : x_(0.0f), y_(0.0f) {} in Vector2() argument
91 Vector2(float inX, float inY) in Vector2() argument
93 friend Vector2 operator-(const Vector2& v)
95 return Vector2 { -v.x_, -v.y_ };
97 friend Vector2 operator+(const Vector2& a, const Vector2& b)
99 return Vector2 { a.x_ + b.x_, a.y_ + b.y_ };
101 friend Vector2 operator-(const Vector2& a, const Vector2& b)
217 Matrix3 CreateTranslation(const Vector2& trans);
234 Vector2 Transform(const Vector2& vec, const Matrix3& mat);
[all …]
H A Dwindow_helper.h393 TransformHelper::Vector2 p(static_cast<float>(pointPos.x), static_cast<float>(pointPos.y)); in CalculateOriginPosition()
394 TransformHelper::Vector2 originPos = TransformHelper::GetOriginScreenPoint(p, transformMat); in CalculateOriginPosition()
464 …static TransformHelper::Vector2 CalculateHotZoneScale(const TransformHelper::Matrix4& transformMat) in CalculateHotZoneScale()
466 TransformHelper::Vector2 hotZoneScale; in CalculateHotZoneScale()
473 TransformHelper::Vector2 axy(a.x_, a.y_); in CalculateHotZoneScale()
474 TransformHelper::Vector2 bxy(b.x_, b.y_); in CalculateHotZoneScale()
475 TransformHelper::Vector2 cxy(c.x_, c.y_); in CalculateHotZoneScale()
480 return TransformHelper::Vector2(1, 1); in CalculateHotZoneScale()
/ohos5.0/foundation/graphic/graphic_utils_lite/frameworks/
H A Dtransform.cpp26 … shear_ = Matrix4<float>::Shear(Vector2<float>(0, 0), Vector2<float>(0, 0), Vector2<float>(0, 0)); in TransformMap()
46 … shear_ = Matrix4<float>::Shear(Vector2<float>(0, 0), Vector2<float>(0, 0), Vector2<float>(0, 0)); in TransformMap()
97 void TransformMap::Scale(const Vector2<float>& scale, const Vector2<float>& pivot) in Scale()
124 void TransformMap::Rotate(int16_t angle, const Vector2<float>& pivot) in Rotate()
138 void TransformMap::Translate(const Vector2<int16_t>& trans) in Translate()
150 void TransformMap::Translate(const Vector2<float>& trans) in Translate()
162 void TransformMap::Shear(const Vector2<float>& shearX, const Vector2<float>& shearY, const Vector2<… in Shear()
233 void TransformMap::SetCameraPosition(const Vector2<float>& position) in SetCameraPosition()
339 void Rotate(const Vector2<int16_t>& point, int16_t angle, const Vector2<int16_t>& pivot, Vector2<in… in Rotate()
356 Vector2<int16_t> pt1 = origLine[0]; in Rotate()
[all …]
H A Dgeometry2d.cpp23 Vector2<int16_t> aA = a[0]; in Intersect()
24 Vector2<int16_t> aB = a[1]; in Intersect()
25 Vector2<int16_t> bA = b[0]; in Intersect()
26 Vector2<int16_t> bB = b[1]; in Intersect()
44 Vector2<int16_t> aA = a[0]; in IsIntersect()
45 Vector2<int16_t> aB = a[1]; in IsIntersect()
46 Vector2<int16_t> bA = b[0]; in IsIntersect()
47 Vector2<int16_t> bB = b[1]; in IsIntersect()
96 Vector2<int16_t> intersectPoint; in Clip()
111 Vector2<int16_t> intersectPoint; in Clip()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_node/src/
H A Drender_node.ts23 interface Vector2 {
112 topLeft: Vector2,
113 topRight: Vector2,
114 bottomLeft: Vector2,
115 bottomRight: Vector2
399 private pivotValue: Vector2;
483 set pivot(pivot: Vector2) {
512 set scale(scale: Vector2) {
615 get pivot(): Vector2 {
618 get position(): Vector2 {
[all …]
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_view_scale_rotate/
H A Dui_test_view_scale_rotate.h58 const Vector2<float> VIEW_CENTER = {75, 75};
59 const Vector2<float> GROUP_CENTER = {200, 200};
66 Vector2<float> scaleValue_ = {1.0f, 1.0f};
/ohos5.0/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dui_view.h1334 void Rotate(int16_t angle, const Vector2<float>& pivot);
1354 void Scale(const Vector2<float>& scale, const Vector2<float>& pivot);
1378 …void Shear(const Vector2<float>& shearX, const Vector2<float>& shearY, const Vector2<float>& shear…
1380 void Translate(const Vector2<int16_t>& trans);
1388 void SetCameraPosition(const Vector2<float>& position);
/ohos5.0/foundation/arkui/ui_lite/test/unittest/common/
H A Dhardware_acceleration_unit_test.cpp234 Vector2<float> pivot_(58, 58); // 58:x value 58:y value
236 transMap.Scale(Vector2<float>(1.5, 1.5), pivot_); // 1.5:x scale 1.5:y scale
274 Vector2<float> pivot_(58, 58); // 58:x value 58:y value
276 transMap.Scale(Vector2<float>(1.5, 1.5), pivot_); // 1.5:x scale 1.5:y scale
/ohos5.0/foundation/window/window_manager/utils/src/
H A Dwm_math.cpp207 Matrix3 CreateTranslation(const Vector2& trans) in CreateTranslation()
303 Vector2 Transform(const Vector2& vec, const Matrix3& mat) in Transform()
305 Vector2 retVal; in Transform()
345 Vector2 GetOriginScreenPoint(const Vector2& p, const Matrix4& mat) in GetOriginScreenPoint()
357 return Vector2(t * start.x_ + (1 - t) * end.x_, t * start.y_ + (1 - t) * end.y_); in GetOriginScreenPoint()
/ohos5.0/foundation/arkui/ui_lite/frameworks/components/
H A Dui_texture_mapper.cpp58 Scale(Vector2<float>(scale, scale), pivot_); in Start()
86 Scale(Vector2<float>(scale, scale), pivot_); in Callback()
H A Dui_view.cpp278 void UIView::Rotate(int16_t angle, const Vector2<float>& pivot) in Rotate()
304 void UIView::Scale(const Vector2<float>& scale, const Vector2<float>& pivot) in Scale()
330 void UIView::Shear(const Vector2<float>& shearX, const Vector2<float>& shearY, const Vector2<float>… in Shear()
352 void UIView::Translate(const Vector2<int16_t>& trans) in Translate()
399 void UIView::SetCameraPosition(const Vector2<float>& position) in SetCameraPosition()
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_transform/
H A Dui_test_transform.cpp180 Vector2<float> pivot(58, 58); // 58:x value 58:y value in OnClick()
236 void UITestTransform::SetTransMap(int16_t angle, float scale, int16_t trans, Vector2<float> pivot) in SetTransMap()
244 transMap.Scale(Vector2<float>(scale_, scale_), pivot); in SetTransMap()
245 transMap.Translate(Vector2<int16_t>(trans, 0)); in SetTransMap()
/ohos5.0/foundation/window/window_manager/test/fuzztest/wms/windowutilmath_fuzzer/
H A Dwindowutilmath_fuzzer.cpp75 void InitVector2(OHOS::Rosen::TransformHelper::Vector2& vec2, in InitVector2()
131 OHOS::Rosen::TransformHelper::Vector2 vec2; in WindowUtilMathFuzzPart1()
157 OHOS::Rosen::TransformHelper::Vector2 vec2; in WindowUtilMathFuzzPart2()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/
H A Djs-apis-arkui-graphics.md30 type Position = Vector2
40 | [Vector2](#vector2) | 包含x和y两个值的向量。<br/>单位:vp |
73 type Pivot = Vector2
87 type Scale = Vector2
97 | [Vector2](#vector2) | x和y轴的缩放参数。该参数为浮点数,默认值为1.0。 |
101 type Translation = Vector2
111 | [Vector2](#vector2) | x和y轴的平移量。<br/>单位:px |
129 type Offset = Vector2
139 | [Vector2](#vector2) | x和y轴方向的偏移量。<br/>单位:vp |
169 ## Vector2 section
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/
H A Drs_render_transition_effect.h76 std::shared_ptr<RSRenderAnimatableProperty<Vector2<float>>> property_;
94 std::shared_ptr<RSRenderAnimatableProperty<Vector2<float>>> property_;
/ohos5.0/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_view_unit_test.cpp44 const Vector2<float> VIEW_CENTER = {50, 50};
45 const Vector2<float> SCALE_VALUE = {0.5f, 0.5f};
46 const Vector2<int16_t> POLYGON1 = {0, 0};
47 const Vector2<int16_t> POLYGON2 = {70, 70};
48 const Vector2<int16_t> POLYGON3 = {0, 140};
49 const Vector2<int16_t> POLYGON4 = {-70, 70};

12