Lines Matching defs:tangent

111  * @tc.desc: Test for getting position and tangent of a path using normal parameters with tangent flag set to true.
123 // 4. Get the position and tangent of a point at a specified distance from the starting point of the path. Set the
126 OH_Drawing_Point2D tangent;
127 OH_Drawing_PathGetPositionTangent(path, true, 50, &position, &tangent);
135 * @tc.desc: Test for getting position and tangent of a path using normal parameters with tangent flag set to false.
147 // 4. Get the position and tangent of a point at a specified distance from the starting point of the path. Set the
150 OH_Drawing_Point2D tangent;
151 OH_Drawing_PathGetPositionTangent(path, false, 50, &position, &tangent);
159 * @tc.desc: Test for getting position and tangent of a path using NULL or invalid parameters.
173 OH_Drawing_Point2D tangent;
174 OH_Drawing_PathGetPositionTangent(path, true, 0.00, &position, &tangent);
177 OH_Drawing_PathGetPositionTangent(path, true, 50, nullptr, &tangent);
190 * @tc.desc: Test for getting position and tangent of a path with abnormal parameters (non-float values).
204 OH_Drawing_Point2D tangent;
205 OH_Drawing_PathGetPositionTangent(path, true, 50, &position, &tangent);
209 OH_Drawing_PathGetPositionTangent(path, true, 50, &position, &tangent);
213 OH_Drawing_PathGetPositionTangent(path, true, 50, &position, &tangent);
216 tangent = {10, 10.0f};
217 OH_Drawing_PathGetPositionTangent(path, true, 50, &position, &tangent);
220 tangent = {10.0f, 10};
221 OH_Drawing_PathGetPositionTangent(path, true, 50, &position, &tangent);
229 * @tc.desc: Test for getting position and tangent of a path with maximal values.
241 // 4. Get the position and tangent of a point at a specified distance from the starting point of the path. Set the
244 OH_Drawing_Point2D tangent;
245 OH_Drawing_PathGetPositionTangent(path, true, FLT_MAX + 1, &position, &tangent);
246 // 5. Get the position and tangent of a point at a specified distance from the starting point of the path. Set the x
249 OH_Drawing_PathGetPositionTangent(path, true, 50, &position, &tangent);
250 // 6. Get the position and tangent of a point at a specified distance from the starting point of the path. Set the y
253 OH_Drawing_PathGetPositionTangent(path, true, 50, &position, &tangent);
254 // 7. Get the position and tangent of a point at a specified distance from the starting point of the path. Set the x
256 tangent = {FLT_MAX + 1, 0.0f};
257 OH_Drawing_PathGetPositionTangent(path, true, 50, &position, &tangent);
258 // 8. Get the position and tangent of a point at a specified distance from the starting point of the path. Set the y
260 tangent = {0.0f, FLT_MAX + 1};
261 OH_Drawing_PathGetPositionTangent(path, true, 50, &position, &tangent);