Home
last modified time | relevance | path

Searched refs:Math (Results 1 - 25 of 237) sorted by relevance

12345678910

/foundation/graphic/graphic_3d/lume/LumeEcsSerializer/EcsSerializer/src/ecs_serializer/
H A Dasset_migration.cpp36 { PROPERTYTYPE(Math::IVec2), PropertyType::IVEC2_T }, // Math::IVec2 to Math::IVec2
37 { PROPERTYTYPE(Math::IVec3), PropertyType::IVEC3_T }, // Math::IVec3 to Math::IVec3
38 { PROPERTYTYPE(Math::IVec4), PropertyType::IVEC4_T }, // Math::IVec4 to Math::IVec4
40 { PROPERTYTYPE(Math
[all...]
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/
H A Dasset_migration.cpp36 { PROPERTYTYPE(Math::IVec2), PropertyType::IVEC2_T }, // Math::IVec2 to BASE_NS::Math::IVec2
37 { PROPERTYTYPE(Math::IVec3), PropertyType::IVEC3_T }, // Math::IVec3 to BASE_NS::Math::IVec3
38 { PROPERTYTYPE(Math::IVec4), PropertyType::IVEC4_T }, // Math::IVec4 to BASE_NS::Math::IVec4
40 { PROPERTYTYPE(Math
[all...]
H A Denv_impl.cpp29 static constexpr Math::Vec4 ZERO = Math::Vec4(0.0f, 0.0f, 0.0f, 0.0f);
30 static constexpr Math::Vec4 ONE = Math::Vec4(1.0f, 1.0f, 1.0f, 1.0f);
37 META_IMPLEMENT_INTERFACE_PROPERTY(IEnvironment, Math::Vec4, IndirectDiffuseFactor, ONE)
38 META_IMPLEMENT_INTERFACE_PROPERTY(IEnvironment, Math::Vec4, IndirectSpecularFactor, ONE)
39 META_IMPLEMENT_INTERFACE_PROPERTY(IEnvironment, Math::Vec4, EnvMapFactor, ONE)
45 IEnvironment, Math::Vec3, IrradianceCoefficients, {})
46 META_IMPLEMENT_INTERFACE_PROPERTY(IEnvironment, Math::Quat, EnvironmentRotation, Math
[all...]
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dpicking.cpp50 MinAndMax GetWorldAABB(const Math::Mat4X4& world, const Math::Vec3& aabbMin, const Math::Vec3& aabbMax) in GetWorldAABB()
56 const auto centerW = Math::MultiplyPoint3X4(world, center); in GetWorldAABB()
58 Math::Mat3X3 absWorld; in GetWorldAABB()
60 absWorld.base[i].x = Math::abs(world.base[i].x); in GetWorldAABB()
61 absWorld.base[i].y = Math::abs(world.base[i].y); in GetWorldAABB()
62 absWorld.base[i].z = Math::abs(world.base[i].z); in GetWorldAABB()
65 Math::Vec3 extentsW; in GetWorldAABB()
74 Math in IntersectAabb()
[all...]
H A Dmesh_util.cpp48 constexpr Math::Vec3 PLANE_NORM[6u] = {
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),
58 constexpr Math::Vec2 PLANE_UV[6u] = {
59 Math::Vec2(1.0f, 1.0f),
60 Math
[all...]
H A Dpicking.h40 BASE_NS::Math::Vec3 ScreenToWorld(
41 CORE_NS::IEcs const& ecs, CORE_NS::Entity cameraEntity, BASE_NS::Math::Vec3 screenCoordinate) const override;
43 BASE_NS::Math::Vec3 WorldToScreen(
44 CORE_NS::IEcs const& ecs, CORE_NS::Entity cameraEntity, BASE_NS::Math::Vec3 worldCoordinate) const override;
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
[all...]
H A Dproperty_util.cpp55 byteSize = sizeof(Math::UVec2); in GetPropertyTypeByteSize()
60 byteSize = sizeof(Math::UVec3); in GetPropertyTypeByteSize()
65 byteSize = sizeof(Math::UVec4); in GetPropertyTypeByteSize()
68 byteSize = sizeof(Math::Mat3X3); in GetPropertyTypeByteSize()
71 byteSize = sizeof(Math::Mat4X4); in GetPropertyTypeByteSize()
93 return PropertyType::MetaDataFrom<Math::UVec2>(nullptr); in GetMetaData()
95 return PropertyType::MetaDataFrom<Math::IVec2>(nullptr); in GetMetaData()
97 return PropertyType::MetaDataFrom<Math::Vec2>(nullptr); in GetMetaData()
100 return PropertyType::MetaDataFrom<Math::UVec3>(nullptr); in GetMetaData()
102 return PropertyType::MetaDataFrom<Math in GetMetaData()
[all...]
H A Dscene_util.h34 BASE_NS::Math::Mat4X4 CalculateProjectionMatrix(const CameraComponent& cameraComponent, bool& isCameraNegative);
42 CORE_NS::Entity CreateCamera(CORE_NS::IEcs& ecs, const BASE_NS::Math::Vec3& position,
43 const BASE_NS::Math::Quat& rotation, float zNear, float zFar, float fovDegrees) const override;
45 CORE_NS::IEcs& ecs, CORE_NS::Entity entity, const BASE_NS::Math::UVec2& renderResolution) const override;
46 void UpdateCameraViewport(CORE_NS::IEcs& ecs, CORE_NS::Entity entity, const BASE_NS::Math::UVec2& renderResolution,
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
[all...]
/foundation/graphic/graphic_3d/lume/metaobject/test/src/
H A Dtest_utils.cpp62 namespace Math { namespace
63 bool operator>(const BASE_NS::Math::Vec3& lhs, const BASE_NS::Math::Vec3& rhs) in operator >()
68 bool operator<(const BASE_NS::Math::Vec3& lhs, const BASE_NS::Math::Vec3& rhs) in operator <()
73 bool operator>(const BASE_NS::Math::Vec2& lhs, const BASE_NS::Math::Vec2& rhs) in operator >()
78 bool operator<(const BASE_NS::Math::Vec2& lhs, const BASE_NS::Math::Vec2& rhs) in operator <()
83 bool operator>=(const BASE_NS::Math
[all...]
H A Dtest_utils.h38 namespace Math { namespace
39 bool operator>(const BASE_NS::Math::Vec3& lhs, const BASE_NS::Math::Vec3& rhs);
40 bool operator<(const BASE_NS::Math::Vec3& lhs, const BASE_NS::Math::Vec3& rhs);
41 bool operator>(const BASE_NS::Math::Vec2& lhs, const BASE_NS::Math::Vec2& rhs);
42 bool operator<(const BASE_NS::Math::Vec2& lhs, const BASE_NS::Math::Vec2& rhs);
44 bool operator>=(const BASE_NS::Math
[all...]
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/util/
H A Dintf_picking.h32 namespace Math { namespace
34 } // namespace Math
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 };
79 BASE_NS::Math::Vec2 hitUv { 0.0f, 0.0f };
98 virtual BASE_NS::Math::Vec3 ScreenToWorld(
99 CORE_NS::IEcs const& ecs, CORE_NS::Entity cameraEntity, BASE_NS::Math::Vec3 screenCoordinate) const = 0;
107 virtual BASE_NS::Math
[all...]
/foundation/graphic/graphic_3d/lume/metaobject/src/
H A Dregister_value_serializers.cpp81 RegisterSerializer<BASE_NS::Math::Vec2>(data, vecExport, vecImport); in RegisterValueSerializers()
82 RegisterSerializer<BASE_NS::Math::Vec3>(data, vecExport, vecImport); in RegisterValueSerializers()
83 RegisterSerializer<BASE_NS::Math::Vec4>(data, vecExport, vecImport); in RegisterValueSerializers()
84 RegisterSerializer<BASE_NS::Math::UVec2>(data, vecExport, vecImport); in RegisterValueSerializers()
85 RegisterSerializer<BASE_NS::Math::UVec3>(data, vecExport, vecImport); in RegisterValueSerializers()
86 RegisterSerializer<BASE_NS::Math::UVec4>(data, vecExport, vecImport); in RegisterValueSerializers()
87 RegisterSerializer<BASE_NS::Math::IVec2>(data, vecExport, vecImport); in RegisterValueSerializers()
88 RegisterSerializer<BASE_NS::Math::IVec3>(data, vecExport, vecImport); in RegisterValueSerializers()
89 RegisterSerializer<BASE_NS::Math::IVec4>(data, vecExport, vecImport); in RegisterValueSerializers()
90 RegisterSerializer<BASE_NS::Math in RegisterValueSerializers()
[all...]
H A Dregister_engine_access.cpp42 BASE_NS::Math::Vec2,
43 BASE_NS::Math::Vec3,
44 BASE_NS::Math::Vec4,
45 BASE_NS::Math::UVec2,
46 BASE_NS::Math::UVec3,
47 BASE_NS::Math::UVec4,
48 BASE_NS::Math::IVec2,
49 BASE_NS::Math::IVec3,
50 BASE_NS::Math::IVec4,
51 BASE_NS::Math
[all...]
H A Dregister_anys.cpp49 BASE_NS::Math::Vec2,
50 BASE_NS::Math::UVec2,
51 BASE_NS::Math::IVec2,
52 BASE_NS::Math::Vec3,
53 BASE_NS::Math::UVec3,
54 BASE_NS::Math::IVec3,
55 BASE_NS::Math::Vec4,
56 BASE_NS::Math::UVec4,
57 BASE_NS::Math::IVec4,
58 BASE_NS::Math
[all...]
/foundation/graphic/graphic_3d/lume/metaobject/src/curves/
H A Deasing_curve.cpp26 return BASE_NS::Math::abs(v1 - v2) < BASE_NS::Math::EPSILON; in AreEqual()
50 return 1.f - BASE_NS::Math::cos((t * BASE_NS::Math::PI) / 2.f); in EaseInSine()
54 return BASE_NS::Math::sin((t * BASE_NS::Math::PI) / 2.f); in EaseOutSine()
58 return -(BASE_NS::Math::cos(BASE_NS::Math::PI * t) - 1.f) / 2.f; in EaseInOutSine()
125 return BASE_NS::Math::pow(2.f, 10 * t - 10); in EaseInExpo()
132 return 1.f - BASE_NS::Math in EaseOutExpo()
[all...]
/foundation/graphic/graphic_3d/lume/LumeEngine/api/core/property/
H A Dproperty_types.h29 namespace Math { namespace
42 } // namespace Math
87 inline constexpr PropertyTypeDecl IVEC2_T = PROPERTYTYPE(BASE_NS::Math::IVec2);
88 inline constexpr PropertyTypeDecl IVEC3_T = PROPERTYTYPE(BASE_NS::Math::IVec3);
89 inline constexpr PropertyTypeDecl IVEC4_T = PROPERTYTYPE(BASE_NS::Math::IVec4);
90 inline constexpr PropertyTypeDecl VEC2_T = PROPERTYTYPE(BASE_NS::Math::Vec2);
91 inline constexpr PropertyTypeDecl VEC3_T = PROPERTYTYPE(BASE_NS::Math::Vec3);
92 inline constexpr PropertyTypeDecl VEC4_T = PROPERTYTYPE(BASE_NS::Math::Vec4);
93 inline constexpr PropertyTypeDecl UVEC2_T = PROPERTYTYPE(BASE_NS::Math::UVec2);
94 inline constexpr PropertyTypeDecl UVEC3_T = PROPERTYTYPE(BASE_NS::Math
[all...]
/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/components/
H A Dinitial_transform_component.h35 BASE_NS::Math::Vec2 vec2Value;
36 BASE_NS::Math::Vec3 vec3Value;
37 BASE_NS::Math::Vec4 vec4Value;
39 BASE_NS::Math::Quat quatValue;
57 explicit InitialTransformComponent(BASE_NS::Math::Vec2 value);
58 explicit InitialTransformComponent(BASE_NS::Math::Vec3 value);
59 explicit InitialTransformComponent(BASE_NS::Math::Vec4 value);
60 explicit InitialTransformComponent(BASE_NS::Math::Quat value);
70 InitialTransformComponent& operator=(BASE_NS::Math::Vec2 value) noexcept;
71 InitialTransformComponent& operator=(BASE_NS::Math
[all...]
/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/node/
H A Drender_node_default_cameras.cpp42 constexpr BASE_NS::Math::Mat4X4 ZERO_MATRIX_4X4 = {};
43 constexpr BASE_NS::Math::Mat4X4 SHADOW_BIAS_MATRIX = BASE_NS::Math::Mat4X4 { 0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 0.5f, 0.0f,
45 constexpr BASE_NS::Math::Mat4X4 GetShadowBias(const uint32_t shadowIndex, const uint32_t shadowCount) in GetShadowBias()
47 const float theShadowCount = static_cast<float>(Math::max(1u, shadowCount)); in GetShadowBias()
51 return BASE_NS::Math::Mat4X4 { sc, 0.0f, 0.0f, 0.0f, 0.0f, 0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, sc + so, 0.5f, in GetShadowBias()
56 Math::Vec2 GetHaltonOffset(const uint32_t haltonIndex) in GetHaltonOffset()
59 constexpr const Math::Vec2 halton16[] = { in GetHaltonOffset()
80 inline constexpr Math::UVec2 GetPacked64(const uint64_t value) in GetPacked64()
85 inline constexpr Math
[all...]
H A Drender_light_helper.h43 static BASE_NS::Math::Vec4 GetShadowAtlasSizeInvSize(const IRenderDataStoreDefaultLight& dsLight) in GetShadowAtlasSizeInvSize()
45 const BASE_NS::Math::UVec2 shadowQualityRes = dsLight.GetShadowQualityResolution(); in GetShadowAtlasSizeInvSize()
47 BASE_NS::Math::Vec2 size = { float(shadowQualityRes.x * shadowCount), float(shadowQualityRes.y) }; in GetShadowAtlasSizeInvSize()
48 size.x = BASE_NS::Math::max(1.0f, size.x); in GetShadowAtlasSizeInvSize()
49 size.y = BASE_NS::Math::max(1.0f, size.y); in GetShadowAtlasSizeInvSize()
75 const float shadowStepSize = 1.0f / BASE_NS::Math::max(1.0f, static_cast<float>(shadowCount)); in CopySingleLight()
76 const BASE_NS::Math::Vec4 pos = currLight.pos; in CopySingleLight()
77 const BASE_NS::Math::Vec4 dir = currLight.dir; in CopySingleLight()
81 memLight->dir.w = BASE_NS::Math::max(epsilonForMinDivisor, currLight.range); in CopySingleLight()
83 BASE_NS::Math in CopySingleLight()
[all...]
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/include/scene_plugin/api/
H A Denvironment.h35 API_INTERFACE_PROPERTY_CACHED(Node, Position, BASE_NS::Math::Vec3)
36 API_INTERFACE_PROPERTY_CACHED(Node, Scale, BASE_NS::Math::Vec3)
37 API_INTERFACE_PROPERTY_CACHED(Node, Rotation, BASE_NS::Math::Quat)
40 API_INTERFACE_PROPERTY_CACHED(Node, LocalMatrix, BASE_NS::Math::Mat4X4)
43 API_INTERFACE_PROPERTY_CACHED(Environment, IndirectDiffuseFactor, BASE_NS::Math::Vec4)
44 API_INTERFACE_PROPERTY_CACHED(Environment, IndirectSpecularFactor, BASE_NS::Math::Vec4)
45 API_INTERFACE_PROPERTY_CACHED(Environment, EnvMapFactor, BASE_NS::Math::Vec4)
50 API_INTERFACE_PROPERTY_CACHED(Environment, EnvironmentRotation, BASE_NS::Math::Quat)
51 API_INTERFACE_PROPERTY_CACHED(Environment, AdditionalFactor, BASE_NS::Math::Vec4)
H A Dnode.h38 META_API_INTERFACE_PROPERTY_CACHED(Node, Position, BASE_NS::Math::Vec3)
39 META_API_INTERFACE_PROPERTY_CACHED(Node, Scale, BASE_NS::Math::Vec3)
40 META_API_INTERFACE_PROPERTY_CACHED(Node, Rotation, BASE_NS::Math::Quat)
43 META_API_INTERFACE_PROPERTY_CACHED(Node, LocalMatrix, BASE_NS::Math::Mat4X4)
77 BASE_NS::Math::Mat4X4 GetGlobalTransform() const in GetGlobalTransform()
82 return BASE_NS::Math::IDENTITY_4X4; in GetGlobalTransform()
85 void SetGlobalTransform(const BASE_NS::Math::Mat4X4& mat) in SetGlobalTransform()
/foundation/graphic/graphic_3d/lume/LumeRender/src/util/
H A Dproperty_util.cpp39 Math::max(BUFFER_HANDLE_REF_BYTE_SIZE, Math::max(IMAGE_HANDLE_REF_BYTE_SIZE, SAMPLER_HANDLE_REF_BYTE_SIZE));
54 byteSize = sizeof(Math::UVec2); in GetPropertyTypeByteSize()
59 byteSize = sizeof(Math::UVec3); in GetPropertyTypeByteSize()
64 byteSize = sizeof(Math::UVec4); in GetPropertyTypeByteSize()
67 byteSize = sizeof(Math::Mat3X3); in GetPropertyTypeByteSize()
70 byteSize = sizeof(Math::Mat4X4); in GetPropertyTypeByteSize()
90 return PropertyType::MetaDataFrom<Math::UVec2>(nullptr); in GetMetaData()
92 return PropertyType::MetaDataFrom<Math::IVec2>(nullptr); in GetMetaData()
94 return PropertyType::MetaDataFrom<Math in GetMetaData()
[all...]
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/render/
H A Drender_data_defines_3d.h130 BASE_NS::Math::Mat4X4 world;
132 BASE_NS::Math::Mat4X4 normalWorld;
134 BASE_NS::Math::Mat4X4 prevWorld;
147 BASE_NS::Math::UVec4 customData[RenderSceneDataConstants::MESH_CUSTOM_DATA_VEC4_COUNT] {};
270 BASE_NS::Math::Vec3 worldCenter { 0.0f, 0.0f, 0.0f };
314 BASE_NS::Math::Vec4 pos { 0.0f, 0.0f, 0.0f, 0.0f };
316 BASE_NS::Math::Vec4 dir { 0.0f, 0.0f, 0.0f, 0.0f };
318 BASE_NS::Math::Vec4 color { 0.0f, 0.0f, 0.0f, 0.0f };
321 BASE_NS::Math::Vec4 spotLightParams { 0.0f, 0.0f, 0.0f, 0.0f };
325 BASE_NS::Math
[all...]
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/include/scene_plugin/interface/
H A Dintf_environment.h54 META_PROPERTY(BASE_NS::Math::Vec4, IndirectDiffuseFactor)
60 META_PROPERTY(BASE_NS::Math::Vec4, IndirectSpecularFactor)
66 META_PROPERTY(BASE_NS::Math::Vec4, EnvMapFactor)
97 META_ARRAY_PROPERTY(BASE_NS::Math::Vec3, IrradianceCoefficients);
103 META_PROPERTY(BASE_NS::Math::Quat, EnvironmentRotation)
109 META_PROPERTY(BASE_NS::Math::Vec4, AdditionalFactor)
/foundation/graphic/graphic_3d/lume/LumeRender/api/render/shaders/common/
H A Drender_compatibility_common.h19 // Math types compatibility with c/c++
28 using vec2 = BASE_NS::Math::Vec2;
29 using vec3 = BASE_NS::Math::Vec3;
30 using vec4 = BASE_NS::Math::Vec4;
31 using uvec2 = BASE_NS::Math::UVec2;
32 using uvec3 = BASE_NS::Math::UVec3;
33 using uvec4 = BASE_NS::Math::UVec4;
34 using mat4 = BASE_NS::Math::Mat4X4;

Completed in 10 milliseconds

12345678910