Home
last modified time | relevance | path

Searched refs:norm (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/base/sensors/sensor/vibration_convert/core/utils/src/
H A Dutils.cpp141 std::vector<int32_t> norm; in NormalizePercentage() local
143norm.push_back(static_cast<int32_t>(round((values[i] - minValue) / range * PERCENTAGE_RANGE))); in NormalizePercentage()
145 return norm; in NormalizePercentage()
175 std::vector<int32_t> norm; in NormalizePercentageRange() local
190norm.push_back(static_cast<int32_t>(round((values[i] - minValue) / range * PERCENTAGE_RANGE))); in NormalizePercentageRange()
192 return norm; in NormalizePercentageRange()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Drosen_transition_effect.cpp531 auto norm = static_cast<float>( in SetRotateEffect() local
533 if (NearZero(norm)) { in SetRotateEffect()
534 norm = 1.0f; in SetRotateEffect()
537 …:get<InternalRotationXEffect>(effects_).SetActiveValue(-options.angle * options.xDirection / norm); in SetRotateEffect()
538 …:get<InternalRotationYEffect>(effects_).SetActiveValue(-options.angle * options.yDirection / norm); in SetRotateEffect()
539 …::get<InternalRotationZEffect>(effects_).SetActiveValue(options.angle * options.zDirection / norm); in SetRotateEffect()
H A Drosen_render_context.cpp1825 float norm = std::sqrt(std::pow(rotate.x, 2) + std::pow(rotate.y, 2) + std::pow(rotate.z, 2)); in OnTransformRotateUpdate() local
1826 if (NearZero(norm)) { in OnTransformRotateUpdate()
1827 norm = 1.0f; in OnTransformRotateUpdate()
1830 …rsNode_->SetRotation(-rotate.w * rotate.x / norm, -rotate.w * rotate.y / norm, rotate.w * rotate.z… in OnTransformRotateUpdate()
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Dmatrix4.cpp116 double norm = std::sqrt(w * w + x * x + y * y + z * z); in QuaternionToMatrix() local
117 if (LessOrEqual(norm, 0.0f)) { in QuaternionToMatrix()
120 w /= norm; in QuaternionToMatrix()
121 x /= norm; in QuaternionToMatrix()
122 y /= norm; in QuaternionToMatrix()
123 z /= norm; in QuaternionToMatrix()
/ohos5.0/docs/en/application-dev/reference/apis-arkts/
H A Djs-apis-arkts-decimal.md3884 Returns a **Decimal** object representing the Euclidean norm of elements in an array.
3902 | [Decimal](#decimal) | **Decimal** object representing the Euclidean norm of the elements.|
/ohos5.0/docs/en/application-dev/reference/apis-neural-network-runtime-kit/
H A D_neural_network_runtime.md681norm of the input tensors in the specified dimension. If **keepDims** is **false**, the dimension …