Home
last modified time | relevance | path

Searched refs:perspective (Results 1 – 25 of 71) sorted by relevance

123

/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/
H A D_ark_u_i___rotation_options.md27 | float [perspective](#perspective) | 视距,即视点到z=0平面的距离。 |
73 ### perspective subsection
76 float ArkUI_RotationOptions::perspective
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Dtransform_util.cpp76 matrix.Set(3, i, decomp.perspective[i]); in BuildPerspectiveMatrix()
163 matrix = matrix * perspective; in ComposeTransform()
346 .append(std::to_string(perspective[0])) in ToString()
348 .append(std::to_string(perspective[1])) in ToString()
350 .append(std::to_string(perspective[2])) in ToString()
352 .append(std::to_string(perspective[3])) in ToString()
478 Combine<4>(ret.perspective, to.perspective, from.perspective, progress, 1.0 - progress); in BlendDecomposedTransforms()
507 out.perspective[i] = rhs[i]; in DecomposeTransform()
512 out.perspective[i] = 0.0; in DecomposeTransform()
513 out.perspective[3] = 1.0; in DecomposeTransform()
[all …]
H A Dtransform_util.h104 float perspective[4] = { 0.0f, 0.0f, 0.0f, 1.0f };
/ohos5.0/docs/en/application-dev/reference/apis-arkui/
H A D_ark_u_i___rotation_options.md27 | float [perspective](#perspective) | Distance from the user to the z=0 plane. |
73 ### perspective subsection
76 float ArkUI_RotationOptions::perspective
H A Djs-apis-matrix4.md46 | m03 | number | Yes | The fourth value, which is affected by perspective projection. …
50 | m13 | number | Yes | The eighth value, which is affected by perspective projection. …
54 | m23 | number | Yes | The 12th value, which is affected by perspective projection. …
58 | m33 | number | Yes | Valid in homogeneous coordinates, presenting the perspective projection e…
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-universal-attributes-transformation.md25 …br/>centerZ:&nbsp;0,<br/>perspective:&nbsp;0<br/>}<br/>单位:vp<br/>![coordinates](figures/coordinate…
94 | perspective<sup>10+</sup> | number | 否 | 视距,即视点到z=0平面的距离。<br/>旋转轴和旋转中心点都基于坐…
188 该示例通过perspective为组件添加视距效果。
204 .rotate({ y: 1, angle: 45, perspective: this.prep })
228 ![perspective](figures/perspective.gif)
H A Dts-transition-animation-component.md48 …)代表组件的左上角。<br/>-centerZ指z轴锚点,即3D旋转中心点的z轴分量,centerZ默认值是0。<br/>-perspective指视距,不支持perspective属性做转场动画…
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/property/
H A Dtransition_property.h81 float perspective = 0.0f; member
85 …const float perspective = 0.0f) : xDirection(xDirection), yDirection(yDirection), zDirection(zDire…
86 … angle(angle), centerX(centerX), centerY(centerY), centerZ(centerZ), perspective(perspective) {}
93 NearEqual(centerZ, other.centerZ) && NearEqual(perspective, other.perspective);
100 std::to_string(perspective) + "]"; in ToString()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/transform/
H A Drender_transform.cpp303 auto& perspective = effect.perspectiveOperation_; in ParseTransformEffect() local
304 double distance = CovertDimensionToPxBySize(perspective.distance, 0.0); in ParseTransformEffect()
326 auto& perspective = effect.perspectiveOperation_; in ParseDimension() local
327 perspective.distance = Dimension(CovertDimensionToPxBySize(perspective.distance, 0.0)); in ParseDimension()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_transitioneffect.h59 float perspective; member
102 options.perspective); in Rotate()
/ohos5.0/foundation/arkui/ace_engine/interfaces/native/node/
H A Dnode_transition.cpp80 toEffectOption->rotate.perspective = effectOption->rotate->perspective; in ConvertToEffectOption()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/base/
H A Dtransform_util_test.cpp342 EXPECT_EQ(out.perspective[0] == 1.0f, true);
348 EXPECT_EQ(out.perspective[0] == 0.000001f, true);
354 EXPECT_EQ(out.perspective[0] == 0.000001f, true);
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/render_environment/base/math/
H A Dmath_utils.h57 return glm::perspective(fov, aspect, nearV, farV); in Perspective()
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample/
H A Dscene_demo.js38 scene.camera().perspective(30, gl.width / gl.height, 1, 100).eye(0, 1.5, 8).center(0, 0, 0);
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-universal-attributes-transformation.md25 …terZ: 0,<br>perspective: 0<br>}<br>Unit: vp<br>![coordinates](figures/coordinates.png)<br>Since AP…
94 | perspective<sup>10+</sup> | number | No | Distance from the user to the z=0 …
/ohos5.0/docs/en/application-dev/application-models/
H A Dinter-device-interaction-hop-overview.md19 …let to a smart TV. The video application on the tablet exits. From the perspective of application …
26 …. Then, you use the chat software to send it to the customer. From the perspective of application …
/ohos5.0/docs/en/application-dev/webgl/
H A Dwebgl-2d-guidelines.md236 …- Erase the canvas with the background color, and then build a camera perspective projection matri…
247 // Create a perspective projection matrix to simulate perspective deformation in the camera.
253 mat4.perspective(projectionMatrix, fieldOfView, aspect, zNear, zFar);
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/utils/
H A DCamera.js50 perspective(fovy = 60, aspect = 1, near = 0.1, far = 100) { method in Camera
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/
H A Dgltf2_exporter.cpp501 exportCamera->attributes.perspective.yfov = cameraComponent.yFov; in ExportGltfCameras()
502 exportCamera->attributes.perspective.zfar = cameraComponent.zFar; in ExportGltfCameras()
503 exportCamera->attributes.perspective.znear = cameraComponent.zNear; in ExportGltfCameras()
1485 if (camera->attributes.perspective.aspect > 0.f) { in ExportCameras()
1486 jsonPerspective["aspectRatio"] = camera->attributes.perspective.aspect; in ExportCameras()
1488 jsonPerspective["yfov"] = camera->attributes.perspective.yfov; in ExportCameras()
1489 if (camera->attributes.perspective.zfar > 0.f) { in ExportCameras()
1490 jsonPerspective["zfar"] = camera->attributes.perspective.zfar; in ExportCameras()
1492 jsonPerspective["znear"] = camera->attributes.perspective.znear; in ExportCameras()
2322 Math::Vec4 perspective; in CombineSkippedParentTransformations() local
[all …]
H A Dgltf2_loader.cpp1646 … LoadResult& loadResult, const json::value& jsonData, Camera::Attributes::Perspective& perspective) in PrimitiveAttributes() argument
1648 … if (!ParseOptionalNumber<float>(loadResult, perspective.aspect, jsonData, "aspectRatio", -1.f)) { in PrimitiveAttributes()
1651 …if (!ParseOptionalNumber<float>(loadResult, perspective.yfov, jsonData, "yfov", -1.f)) { // requir… in PrimitiveAttributes()
1654 if (!ParseOptionalNumber<float>(loadResult, perspective.zfar, jsonData, "zfar", -1.f)) { in PrimitiveAttributes()
1657 …if (!ParseOptionalNumber<float>(loadResult, perspective.znear, jsonData, "znear", -1.f)) { // requ… in PrimitiveAttributes()
1660 if (perspective.yfov < 0 || perspective.znear < 0) { in PrimitiveAttributes()
1706 … const auto parser = [&camera](LoadResult& loadResult, const json::value& perspective) -> bool { in PrimitiveAttributes() argument
1707 return CameraPerspective(loadResult, perspective, camera->attributes.perspective); in PrimitiveAttributes()
/ohos5.0/docs/en/device-dev/porting/
H A Dporting-minichip-overview.md4 …te walkthrough of OpenHarmony-based chip adaptation from an end-to-end perspective. It applies to …
/ohos5.0/docs/en/application-dev/graphics3d/
H A Darkgraphics3D-scene.md5 …the 3D scene. In essence, 3D rendering is to observe a 3D scene from a perspective and project it …
8 …the camera and light settings, which will help you achieve the desired perspective and lighting co…
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dbase_text_select_overlay.cpp1114 Vector4F perspectiveVector(transform.perspective[xIndex], transform.perspective[yIndex], in CheckHasTransformMatrix()
1115 transform.perspective[zIndex], transform.perspective[wIndex]); in CheckHasTransformMatrix()
/ohos5.0/docs/en/contribute/template/
H A Dfaq-template.md38 Describe the errors from the user's perspective that they can observe. This includes the context, m…
/ohos5.0/docs/zh-cn/application-dev/webgl/
H A Dwebgl-2d-guidelines.md257 mat4.perspective(projectionMatrix, fieldOfView, aspect, zNear, zFar);

123