/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/math/ |
H A D | vector.h | 30 class Vec3; in BASE_BEGIN_NAMESPACE() local 892 inline constexpr Vec3 Vec3::operator+(const Vec3& v2) const in BASE_BEGIN_NAMESPACE() 897 inline constexpr Vec3& Vec3::operator+=(const Vec3& rhs) in BASE_BEGIN_NAMESPACE() 906 inline constexpr Vec3 Vec3::operator-() const in BASE_BEGIN_NAMESPACE() 912 inline constexpr Vec3 Vec3::operator-(const Vec3& v2) const in BASE_BEGIN_NAMESPACE() 917 inline constexpr Vec3& Vec3::operator-=(const Vec3& rhs) in BASE_BEGIN_NAMESPACE() 926 inline constexpr Vec3 Vec3::operator*(const Vec3& v2) const in BASE_BEGIN_NAMESPACE() 931 inline constexpr Vec3& Vec3::operator*=(const Vec3& rhs) in BASE_BEGIN_NAMESPACE() 940 inline constexpr Vec3 Vec3::operator/(const Vec3& v2) const in BASE_BEGIN_NAMESPACE() 945 inline constexpr Vec3& Vec3::operator/=(const Vec3& rhs) in BASE_BEGIN_NAMESPACE() [all …]
|
H A D | vector_util.h | 149 static inline constexpr float Dot(const Vec3& lhs, const Vec3& rhs) in BASE_BEGIN_NAMESPACE() 155 static inline constexpr Vec3 Cross(const Vec3& lhs, const Vec3& rhs) in BASE_BEGIN_NAMESPACE() 161 static inline constexpr Vec3 Lerp(const Vec3& v1, const Vec3& v2, float t) in BASE_BEGIN_NAMESPACE() 174 static inline float Magnitude(const Vec3& vec) in BASE_BEGIN_NAMESPACE() 180 static inline float Distance2(const Vec3& v0, const Vec3& v1) in BASE_BEGIN_NAMESPACE() 186 static inline Vec3 Normalize(const Vec3& value) in BASE_BEGIN_NAMESPACE() 192 return Vec3(0.0f, 0.0f, 0.0f); in BASE_BEGIN_NAMESPACE() 197 static constexpr inline Vec3 min(const Vec3& lhs, const Vec3& rhs) in BASE_BEGIN_NAMESPACE() 203 static constexpr inline Vec3 max(const Vec3& lhs, const Vec3& rhs) in BASE_BEGIN_NAMESPACE() 209 static inline Vec3 Scale(Vec3 const& v, float desiredLength) in BASE_BEGIN_NAMESPACE() [all …]
|
H A D | quaternion_util.h | 33 static inline Quat FromEulerRad(const Vec3& euler) in BASE_BEGIN_NAMESPACE() 93 static inline Quat Euler(const Vec3& euler) in BASE_BEGIN_NAMESPACE() 99 static inline Quat LookRotation(Vec3 forward, Vec3 up) in BASE_BEGIN_NAMESPACE() 147 static inline constexpr Vec3 NormalizeAngles(Vec3 angles) in BASE_BEGIN_NAMESPACE() 156 static inline Vec3 ToEulerRad(const Quat& q) in BASE_BEGIN_NAMESPACE() 173 Vec3 eulerRadRotations(roll, pitch, yaw); in BASE_BEGIN_NAMESPACE() 195 inline Vec3 operator*(const Quat& q, const Vec3& v) in BASE_BEGIN_NAMESPACE() 197 const Vec3 QuatVector(q.x, q.y, q.z); in BASE_BEGIN_NAMESPACE() 198 const Vec3 uv(Cross(QuatVector, v)); in BASE_BEGIN_NAMESPACE() 199 const Vec3 uuv(Cross(QuatVector, uv)); in BASE_BEGIN_NAMESPACE() [all …]
|
H A D | matrix.h | 49 Vec3 x, y, z; in BASE_BEGIN_NAMESPACE() 51 Vec3 base[3]; in BASE_BEGIN_NAMESPACE() 56 constexpr Vec3& operator[](size_t aIndex) in BASE_BEGIN_NAMESPACE() 62 constexpr const Vec3& operator[](size_t aIndex) const in BASE_BEGIN_NAMESPACE() 75 …inline constexpr Mat3X3(Vec3 const& v0, Vec3 const& v1, Vec3 const& v2) noexcept : x(v0), y(v1), z… in BASE_BEGIN_NAMESPACE() 86 const Vec3& rha { rhs.x.x, rhs.y.x, rhs.z.x }; in BASE_BEGIN_NAMESPACE() 87 const Vec3& rhb { rhs.x.y, rhs.y.y, rhs.z.y }; in BASE_BEGIN_NAMESPACE() 88 const Vec3& rhc { rhs.x.z, rhs.y.z, rhs.z.z }; in BASE_BEGIN_NAMESPACE() 256 Vec3 x, y, z, w; in BASE_BEGIN_NAMESPACE() 267 constexpr Vec3& operator[](size_t aIndex) in BASE_BEGIN_NAMESPACE() [all …]
|
H A D | matrix_util.h | 295 const Vec3& translationVector, const Quat& rotationQuaternion, const Vec3& scaleVector) in BASE_BEGIN_NAMESPACE() 301 static inline constexpr Vec3 MultiplyVector(const Mat4X4& mat, const Vec3& vec) in BASE_BEGIN_NAMESPACE() 303 Vec3 res; in BASE_BEGIN_NAMESPACE() 339 static inline constexpr Vec3 MultiplyPoint3X4(const Mat4X4& mat4X4, const Vec3& point) in BASE_BEGIN_NAMESPACE() 341 Vec3 result; in BASE_BEGIN_NAMESPACE() 459 inline constexpr Vec3 operator*(const Mat3X3& m, const Vec3& v) in BASE_BEGIN_NAMESPACE() 678 static inline Mat4X4 LookAtRh(Vec3 const& eye, Vec3 const& center, Vec3 const& up) in BASE_BEGIN_NAMESPACE() 682 Vec3 const u(Cross(s, f)); in BASE_BEGIN_NAMESPACE() 701 static inline Mat4X4 LookAtLh(Vec3 const& eye, Vec3 const& center, Vec3 const& up) in BASE_BEGIN_NAMESPACE() 725 …Mat4X4 const& modelMatrix, Vec3& scale, Quat& orientation, Vec3& translation, Vec3& skew, Vec4& pe… in BASE_BEGIN_NAMESPACE() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/util/ |
H A D | intf_picking.h | 50 BASE_NS::Math::Vec3 minAABB { CORE_FMAX, CORE_FMAX, CORE_FMAX }; 51 BASE_NS::Math::Vec3 maxAABB { -CORE_FMAX, -CORE_FMAX, -CORE_FMAX }; 67 BASE_NS::Math::Vec3 worldPosition { 0.0f, 0.0f, 0.0f }; 76 BASE_NS::Math::Vec3 worldPosition { 0.0f, 0.0f, 0.0f }; 98 virtual BASE_NS::Math::Vec3 ScreenToWorld( 107 virtual BASE_NS::Math::Vec3 WorldToScreen( 112 const BASE_NS::Math::Vec3& aabbMax) const = 0; 138 …CORE_NS::IEcs const& ecs, const BASE_NS::Math::Vec3& start, const BASE_NS::Math::Vec3& direction) … 151 const BASE_NS::Math::Vec3& direction, uint64_t layerMask) const = 0; 160 virtual BASE_NS::vector<RayTriangleCastResult> RayCast(const BASE_NS::Math::Vec3& start, [all …]
|
H A D | intf_scene_util.h | 54 virtual CORE_NS::Entity CreateCamera(CORE_NS::IEcs& ecs, const BASE_NS::Math::Vec3& position, 87 …virtual void CameraLookAt(CORE_NS::IEcs& ecs, CORE_NS::Entity entity, const BASE_NS::Math::Vec3& e… 88 const BASE_NS::Math::Vec3& target, const BASE_NS::Math::Vec3& up) = 0; 99 const BASE_NS::Math::Vec3& position, const BASE_NS::Math::Quat& rotation) const = 0;
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | picking.h | 40 BASE_NS::Math::Vec3 ScreenToWorld( 43 BASE_NS::Math::Vec3 WorldToScreen( 46 … BASE_NS::vector<RayCastResult> RayCast(CORE_NS::IEcs const& ecs, const BASE_NS::Math::Vec3& start, 47 const BASE_NS::Math::Vec3& direction) const override; 48 … BASE_NS::vector<RayCastResult> RayCast(CORE_NS::IEcs const& ecs, const BASE_NS::Math::Vec3& start, 49 const BASE_NS::Math::Vec3& direction, uint64_t layerMask) const override; 50 BASE_NS::vector<RayTriangleCastResult> RayCast(const BASE_NS::Math::Vec3& start, 51 …const BASE_NS::Math::Vec3& direction, BASE_NS::array_view<const BASE_NS::Math::Vec3> triangles) co… 60 MinAndMax GetWorldAABB(const BASE_NS::Math::Mat4X4& world, const BASE_NS::Math::Vec3& aabbMin, 61 const BASE_NS::Math::Vec3& aabbMax) const override; [all …]
|
H A D | mesh_util.cpp | 49 Math::Vec3(0.0f, 1.0f, 0.0f), 50 Math::Vec3(0.0f, 1.0f, 0.0f), 51 Math::Vec3(0.0f, 1.0f, 0.0f), 53 Math::Vec3(0.0f, 1.0f, 0.0f), 54 Math::Vec3(0.0f, 1.0f, 0.0f), 55 Math::Vec3(0.0f, 1.0f, 0.0f), 99 vector<Math::Vec3>& vertices; 100 vector<Math::Vec3>& normals; 530 vector<Math::Vec3> normals; in GenerateSphereMesh() 566 vector<Math::Vec3> normals; in GenerateConeMesh() [all …]
|
H A D | picking.cpp | 50 MinAndMax GetWorldAABB(const Math::Mat4X4& world, const Math::Vec3& aabbMin, const Math::Vec3& aabb… in GetWorldAABB() 65 Math::Vec3 extentsW; in GetWorldAABB() 74 …Math::Vec3 aabbMin, Math::Vec3 aabbMax, Math::Vec3 start, Math::Vec3 invDirection, float& hitDista… in IntersectAabb() 107 bool IntersectTriangle(const Math::Vec3 triangle[3], const Math::Vec3 start, const Math::Vec3 direc… in IntersectTriangle() 219 const Math::Vec3& start, const Math::Vec3& invDir) in HitTestNode() 255 Math::Vec3 screenCoordinate) in ScreenToWorld() 273 Math::Vec3 origin; 274 Math::Vec3 direction; 287 const Math::Vec3& rayOrigin = Math::Vec3(cameraWorldMatrixComponent.matrix.w); in RayFromCamera() 316 Math::Vec3 Picking::WorldToScreen(IEcs const& ecs, Entity cameraEntity, Math::Vec3 worldCoordinate)… in WorldToScreen() [all …]
|
H A D | mesh_util.h | 27 class Vec3; in BASE_BEGIN_NAMESPACE() local 71 const BASE_NS::array_view<const BASE_NS::Math::Vec3>& positions, in CORE3D_BEGIN_NAMESPACE() 72 const BASE_NS::array_view<const BASE_NS::Math::Vec3>& normals, in CORE3D_BEGIN_NAMESPACE() 76 const BASE_NS::array_view<const BASE_NS::Math::Vec3>& positions, in CORE3D_BEGIN_NAMESPACE() 77 const BASE_NS::array_view<const BASE_NS::Math::Vec3>& normals, in CORE3D_BEGIN_NAMESPACE() 81 const BASE_NS::array_view<const BASE_NS::Math::Vec3>& positions, in CORE3D_BEGIN_NAMESPACE() 82 const BASE_NS::array_view<const BASE_NS::Math::Vec3>& normals, in CORE3D_BEGIN_NAMESPACE()
|
H A D | scene_util.h | 42 CORE_NS::Entity CreateCamera(CORE_NS::IEcs& ecs, const BASE_NS::Math::Vec3& position, 48 void CameraLookAt(CORE_NS::IEcs& ecs, CORE_NS::Entity entity, const BASE_NS::Math::Vec3& eye, 49 const BASE_NS::Math::Vec3& target, const BASE_NS::Math::Vec3& up) override; 52 const BASE_NS::Math::Vec3& position, const BASE_NS::Math::Quat& rotation) const override;
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkgraphics3d/ |
H A D | js-apis-inner-scene-types.md | 22 ## Vec3 section 60 | aabbMin | [Vec3](#vec3) | 否 | 否 | 轴对齐边界盒的小值点。 | 86 type Position3 = Vec3 88 用于表示3维空间中物体的位置,是[Vec3](#vec3)类型。 94 | [Vec3](#vec3) | 类型为三维向量,可取任意值。 | 97 type Rotation3 = Vec3 99 用于表示3维空间中物体的旋转,是[Vec3](#vec3)类型。 105 | [Vec3](#vec3) | 类型为三维向量,可取任意值。 | 108 type Scale3 = Vec3 110 用于表示3维空间中物体的缩放,是[Vec3](#vec3)类型。 [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/ |
H A D | vec3.h | 25 class ACE_EXPORT Vec3 { 27 Vec3() = default; 28 ~Vec3() = default; 29 Vec3(float x, float y, float z, const AnimationOption& option = AnimationOption()) { 35 Vec3(AnimatableFloat x, AnimatableFloat y, AnimatableFloat z) { in Vec3() function 88 bool operator==(const Vec3& vec) const 95 bool operator!=(const Vec3& vec) const 100 Vec3& operator=(const Vec3& newValue)
|
/ohos5.0/docs/en/application-dev/reference/apis-arkgraphics3d/ |
H A D | js-apis-inner-scene-types.md | 23 ## Vec3 section 61 | aabbMin | [Vec3](#vec3) | No| No| Minimum bounds of the AABB.| 62 | aabbMax | [Vec3](#vec3) | No| No| Maximum bounds of the AABB.| 87 type Position3 = Vec3 95 | [Vec3](#vec3) | Any 3D vector.| 98 type Rotation3 = Vec3 100 Rotation of an object in 3D space. It is of the [Vec3](#vec3) type. 106 | [Vec3](#vec3) | Any 3D vector.| 109 type Scale3 = Vec3 111 Scaling of an object in 3D space. The type is [Vec3](#vec3). [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/model/ |
H A D | model_position.h | 31 pos_ = Vec3(src.GetX(), src.GetY(), src.GetZ(), src.GetPosition().GetAnimationOption()); in ModelPosition() 45 void Set(const Vec3& pos, AnimatableFloat distance, bool isAngular) in Set() 52 void SetPosition(const Vec3& pos) in SetPosition() 67 const Vec3& GetPosition() const in GetPosition() 98 Vec3 pos_ { 0.0f, 0.0f, 4.0f };
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/scene_viewer/ |
H A D | scene_viewer_component.h | 104 const Vec3 GetCameraPositionVec() in GetCameraPositionVec() 119 void SetCameraLookAt(Vec3 lookAtVec) in SetCameraLookAt() 124 const Vec3 GetCameraLookAtVec() const in GetCameraLookAtVec() 129 void SetCameraUp(Vec3 upVec) in SetCameraUp() 134 const Vec3 GetCameraUpVec() const in GetCameraUpVec() 234 Vec3 cameraLookAtVec_ { 0.0f, 0.0f, 0.0f }; 235 Vec3 cameraUpVec_ { 0.0f, 1.0f, 0.0f };
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/ecs/components/ |
H A D | joint_matrices_component.h | 51 …DEFINE_ARRAY_PROPERTY(BASE_NS::Math::Vec3, CORE_DEFAULT_MATERIAL_MAX_JOINT_COUNT, jointAabbMinArra… 57 …DEFINE_ARRAY_PROPERTY(BASE_NS::Math::Vec3, CORE_DEFAULT_MATERIAL_MAX_JOINT_COUNT, jointAabbMaxArra… 64 …BASE_NS::Math::Vec3, jointsAabbMin, "Combined Joint AABB Min Values", 0, ARRAY_VALUE(0.0f, 0.0f, 0… 70 …BASE_NS::Math::Vec3, jointsAabbMax, "Combined Joint AABB Max Values", 0, ARRAY_VALUE(0.0f, 0.0f, 0…
|
H A D | mesh_component.h | 129 BASE_NS::Math::Vec3 aabbMin { 0.0f, 0.0f, 0.0f }; 131 BASE_NS::Math::Vec3 aabbMax { 0.0f, 0.0f, 0.0f }; 163 DEFINE_PROPERTY(BASE_NS::Math::Vec3, aabbMin, "Min AABB", 0, ARRAY_VALUE(0.0f, 0.0f, 0.0f)) 166 DEFINE_PROPERTY(BASE_NS::Math::Vec3, aabbMax, "Max AABB", 0, ARRAY_VALUE(0.0f, 0.0f, 0.0f))
|
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/include/scene_plugin/interface/ |
H A D | intf_mesh.h | 37 META_PROPERTY(BASE_NS::Math::Vec3, AABBMin) 38 META_PROPERTY(BASE_NS::Math::Vec3, AABBMax) 43 virtual void SetAABBMin(BASE_NS::Math::Vec3) = 0; 44 virtual void SetAABBMax(BASE_NS::Math::Vec3) = 0; 82 META_READONLY_PROPERTY(BASE_NS::Math::Vec3, AABBMin) 87 META_READONLY_PROPERTY(BASE_NS::Math::Vec3, AABBMax)
|
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/core/include/lume/ |
H A D | lume_common.h | 77 BASE_NS::Math::Vec3 color_; 78 BASE_NS::Math::Vec3 position_; 90 … void SetOrbitFromEye(const BASE_NS::Math::Vec3& eyePosition, const BASE_NS::Math::Quat& rotation, 93 …void SetOrbitFromTarget(const BASE_NS::Math::Vec3& targetPosition, const BASE_NS::Math::Quat& rota… 96 BASE_NS::Math::Vec3 GetCameraPosition(); 115 BASE_NS::Math::Vec3 cameraTargetPosition_; 144 …void SetupCameraTransform(const OHOS::Render3D::Position& position, const OHOS::Render3D::Vec3& lo… 145 const OHOS::Render3D::Vec3& up, const OHOS::Render3D::Quaternion& rotation) override; 204 BASE_NS::Math::Vec3& position, BASE_NS::Math::Quat& rotation); 220 BASE_NS::Math::Vec3 cameraPosition_{ 0.0f, 0.0f, 4.0f };
|
/ohos5.0/foundation/graphic/graphic_3d/kits/js/src/ |
H A D | Vec3Proxy.cpp | 17 Vec3Proxy::Vec3Proxy(napi_env env, META_NS::Property<BASE_NS::Math::Vec3> prop) : PropertyProxy(pro… in Vec3Proxy() 31 value = META_NS::Property<BASE_NS::Math::Vec3>(prop_)->GetValue(); in UpdateLocalValues() 36 META_NS::Property<BASE_NS::Math::Vec3>(prop_)->SetValue(value); in UpdateRemoteValues() 38 void Vec3Proxy::SetValue(const BASE_NS::Math::Vec3& v) in SetValue() 94 BASE_NS::Math::Vec3 v(x, y, z); in SetValue()
|
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/include/data_type/ |
H A D | light.h | 27 Light(LightType type, const Vec3& color, float intensity, bool shadow, const Position& position, in Light() 38 void SetColor(const OHOS::Render3D::Vec3& color) in SetColor() 70 const Vec3& GetLightColor() const in GetLightColor() 97 OHOS::Render3D::Vec3 color_ { 1.0f, 1.0f, 1.0f };
|
H A D | vec3.h | 23 class Vec3 { 25 Vec3() {} in Vec3() function 26 Vec3(float x, float y, float z) : x_(x), y_(y), z_(z) {} in Vec3() function
|
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | submesh_impl.cpp | 35 META_IMPLEMENT_INTERFACE_PROPERTY(SCENE_NS::ISubMesh, BASE_NS::Math::Vec3, AABBMin, 36 BASE_NS::Math::Vec3(0.f, 0.f, 0.f), META_NS::DEFAULT_PROPERTY_FLAGS_NO_SER) 37 META_IMPLEMENT_INTERFACE_PROPERTY(SCENE_NS::ISubMesh, BASE_NS::Math::Vec3, AABBMax, 38 BASE_NS::Math::Vec3(0.f, 0.f, 0.f), META_NS::DEFAULT_PROPERTY_FLAGS_NO_SER) 81 void SetAABBMin(BASE_NS::Math::Vec3 vec) override in SetAABBMin() 90 void SetAABBMax(BASE_NS::Math::Vec3 vec) override in SetAABBMax()
|