GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::physics Namespace Reference

Namespaces

namespace  literals

Classes

struct  BroadphaseID
 Opaque handle to an entity in a Broadphase. More...
class  Broadphase
 Acceleration structure for spatial queries in a simulation. More...
struct  CollisionEvent
 Collision start event between two objects in a Simulation. More...
struct  CollisionEvents
 List of collision start events between the objects in a Simulation. More...
struct  SeparationEvent
 Collision end event between two objects in a Simulation. More...
struct  SeparationEvents
 List of collision end events between the objects in a Simulation. More...
struct  ContactPoint
 Contact point between two potentially colliding objects in a Simulation. More...
struct  ContactManifold
 Set of points on the contact surface between two potentially colliding objects. More...
struct  CollisionAlgorithmResult
 Result of a collision algorithm. More...
struct  CollisionAlgorithmOptions
 Configuration options for a collision algorithm. More...
class  CollisionAlgorithmImplementation
 Base interface for a stateful collision algorithm that generates contact points between two potentially colliding objects of specific shape types. More...
class  CollisionAlgorithm
 Generic box type for any collision algorithm implementation derived from CollisionAlgorithmImplementation<N>. More...
struct  Contact
 Potential collision between two objects in a Simulation, including a stateful collision algorithm for generating the actual contact points between them. More...
class  Contacts
 Set of contacts in a Simulation. More...
struct  ShapecastMiss
 Result of a shapecast miss. More...
struct  ShapecastHit
 Result of a shapecast hit. More...
struct  ShapecastHitInterior
 Result of an interor shapecast hit. More...
struct  ShapecastResult
 Result of a shapecast. More...
class  DebugVisualization
 Bundle of draw commands for drawing debugging information about a Simulation. More...
struct  Error
 Exception type for domain-specific errors originating from the grem::physics module. More...
struct  JointConnectedObjects
 Ordered pair of handles to the objects connected by a joint. More...
struct  JointAttachmentOffsets
 Local offsets of the attachment frames of the objects connected by a joint. More...
struct  JointAttachmentOrientations
 Local orientations of the attachment frames of the objects connected by a joint. More...
struct  JointLinearConstraint
 Linear limits of a joint. More...
struct  JointLinearConstraintImpulses
 Impulse applied by the linear limits of a joint. More...
struct  JointDistanceConstraint
 Distance limit of a joint. More...
struct  JointDistanceConstraintImpulses
 Impulse applied by the distance limit of a joint. More...
struct  JointAngularConstraint
 Angular limits of a joint. More...
struct  JointAngularConstraintImpulses
 Impulse applied by the angular limits of a joint. More...
struct  JointConeConstraint3D
 Cone-shaped angular limit of a joint in a 3-dimensional world. More...
struct  JointConeConstraintImpulses3D
 Impulse applied by the cone-shaped angular limit of a joint in a 3-dimensional world. More...
struct  JointTwistConstraint3D
 Angular limit of a joint in a 3-dimensional world around the local Y axes of the connected objects' attachment frames. More...
struct  JointTwistConstraintImpulses3D
 Impulse applied by the angular limit of a joint in a 3-dimensional world around the local Y axes of the connected objects' attachment frames. More...
struct  JointFlags
 Set of boolean properties of a joint. More...
struct  JointActiveTag
 Tag component that is added to joints with active connected objects. More...
struct  GenericJointOptions
 Configuration options for a generic joint. More...
struct  GenericJointOptions< 2 >
struct  GenericJointOptions< 3 >
struct  WeldOptions
 Configuration options for a fully constrained joint. More...
struct  HingeJointOptions
 Configuration options for a revolute joint. More...
struct  BallJointOptions
 Configuration options for a spherical joint. More...
struct  PrismaticJointOptions
 Configuration options for a prismatic joint. More...
struct  CylinderJointOptions
 Configuration options for a cylindrical joint. More...
struct  FluidDensity
 Effective fluid density of an object's surroundings. More...
struct  CenterOfBuoyancy
 World-space offset of the center of buoyancy of an object. More...
struct  Material
 Properties regarding the dynamics of an object. More...
struct  ObjectFlags
 Set of boolean properties of an object. More...
struct  ObjectContacts
 Potential contacts of an object. More...
struct  ObjectActivity
 Activity information of an object. More...
struct  ObjectActiveTag
 Tag component that is added to entities with a non-zero-energy ObjectActivity. More...
struct  ObjectBounds
 Bounds of an object. More...
struct  ObjectOptions
 Configuration options for an object. More...
struct  Dimension
 Physical dimension type template. More...
struct  Magnitude
 Physical magnitude type template. More...
struct  BaseUnit
 Physical base unit type template. More...
struct  Absolute
 The canonical unit type corresponding to a given unit with its magnitude made absolute. More...
struct  Zero
 Abstract physical quantity representing the origin of the global world space reference frame, or the relative value 0 of any unit. More...
struct  ComponentSwizzle
 Tag type for specifying a specific vector components. More...
struct  Quantity
 Physical quantity type. More...
struct  Quantity< 1, UnitT >
class  ConstComponentProxy
 Read-only view of a specific component of a physical vector quantity. More...
class  ComponentProxy
 Reference to a specific component of a physical vector quantity. More...
struct  Quantity< 2, UnitT >
struct  Quantity< 3, UnitT >
struct  TensorQuantity
struct  Direction
 Normalized unit vector. More...
struct  DecomposeMagnitudeDirectionResult
struct  DecomposeMagnitudeAngleResult
struct  OrthonormalBasis
 Basis whose columns are all unit vectors that are orthogonal to each other. More...
struct  Orientation
 Absolute orientation in world space. More...
struct  Orientation< 2 >
 Absolute orientation in 2-dimensional space. More...
struct  Orientation< 3 >
 Absolute orientation in 3-dimensional space. More...
class  LocalTransformation
 Affine transformation in local space. More...
class  Transformation
 Affine transformation in world space. More...
class  InverseTransformation
 Inverse of an affine transformation in world space. More...
class  InverseLocalTransformation
 Inverse of an affine transformation in local space. More...
struct  LocalInertiaOrientation
 Local inertia orientation of an object, rotating from inertia major axis space to shape-local space. More...
struct  LocalInertiaOrientation< 2 >
struct  LocalInertiaOrientation< 3 >
class  CollisionLayer
 Identifier for a collision layer that a collider may belong to. More...
class  CollisionLayers
 Set of collision layers that a collider may belong to. More...
struct  CollisionFilter
 Collision filtering options for a collider. More...
struct  CollisionFilterTestResult
 Result of a CollisionFilterTest. More...
struct  CollisionFilterTest
 Test that checks if a pair of colliders should collide. More...
struct  Ray
 Description of a ray. More...
struct  RayMiss
 Result of a raycast miss. More...
struct  RayHit
 Result of a raycast hit. More...
struct  RayHitInterior
 Result of a raycast interior hit. More...
struct  RaycastResult
 Result of a raycast. More...
struct  Plane
 Description of an infinite plane in world space. More...
struct  LineSegment
 Description of a line segment in world space. More...
struct  Box
 Description of an axis-aligned box in world space. More...
struct  Sphere
 Description of a sphere in world space. More...
struct  Triangle
 Description of a triangle in world space. More...
struct  PointShape
 Point shape. More...
struct  LineSegmentShape
 Line segment shape parallel to the local Y axis. More...
struct  InfiniteLineShape
 Infinite line shape parallel to the local Y axis. More...
struct  InfiniteHalfSpaceShape
 Infinite half-space shape perpendicular to the local Y axis. More...
struct  InfinitePlaneShape3D
 Infinite plane shape perpendicular to the local Y axis in 3-dimensional space. More...
struct  BoxShape
 Box shape. More...
struct  CubeShape
 Cube shape. More...
struct  EllipsoidShape
 Ellipsoid shape. More...
struct  SphereShape
 Sphere shape. More...
struct  CapsuleShape
 Capsule shape aligned with the local Y axis. More...
struct  TaperedCapsuleShape
 Tapered capsule shape aligned with the local Y axis. More...
struct  CylinderShape3D
 Cylinder shape aligned with the local Y axis in 3-dimensional world space. More...
struct  TaperedCylinderShape3D
 Conical frustum shape aligned with the local Y axis in 3-dimensional space. More...
class  ConvexPolytopeShape
 Convex polytope shape. More...
class  TriangleMeshShape
 Triangle mesh shape. More...
struct  Shape
 Generic shape. More...
struct  LocallyTransformedShape
 Wrapper of another shape with a local transformation applied to it. More...
struct  SubCollider
 Sub-collider of a compound collider shape. More...
class  CompoundColliderShape
 Shape that combines multiple colliders. More...
struct  Shape< 2 >
 Shape in 2-dimensional space. More...
struct  Shape< 3 >
 Shape in 3-dimensional space. More...
struct  Collider
 Generic collider. More...
class  ShapeView
 View of a generic shape. More...
class  ConvexShapeView
 View of a generic convex shape. More...
class  ConvexPolytopeShapeView
 View of a generic convex polytope shape. More...
struct  ColliderView
 View of a generic collider. More...
struct  SimulationOptions
 Configuration options for a Simulation. More...
struct  ScheduleStepOptions
 Options for scheduling a step of a Simulation. More...
struct  Simulation
 Discrete-time simulation of physical interactions between objects and joints. More...

Concepts

concept  dimension
 Concept that checks if a type is a valid physical dimension type.
concept  magnitude
 Concept that checks if a type is a valid physical magnitude type.
concept  unit
 Concept that checks if a type is a valid physical unit type.
concept  shape
 Concept that checks if a type is a valid shape type.
concept  shape_2d
 Concept that checks if a type is a valid 2-dimensional shape type.
concept  shape_3d
 Concept that checks if a type is a valid 3-dimensional shape type.
concept  convex_shape
 Concept that checks if a type is a valid convex shape type.
concept  convex_shape_2d
 Concept that checks if a type is a valid 2-dimensional convex shape type.
concept  convex_shape_3d
 Concept that checks if a type is a valid 3-dimensional convex shape type.
concept  convex_polytope_shape
 Concept that checks if a type is a valid convex polytope shape type.
concept  convex_polytope_shape_2d
 Concept that checks if a type is a valid 2-dimensional convex polytope shape type.
concept  convex_polytope_shape_3d
 Concept that checks if a type is a valid 3-dimensional convex polytope shape type.

Typedefs

using Broadphase2D = Broadphase<2>
 Acceleration structure for spatial queries in a 2-dimensional simulation.
using Broadphase3D = Broadphase<3>
 Acceleration structure for spatial queries in a 3-dimensional simulation.
using CollisionEvent2D = CollisionEvent<2>
 Collision start event between two objects in a 2-dimensional Simulation.
using CollisionEvent3D = CollisionEvent<3>
 Collision start event between two objects in a 3-dimensional Simulation.
using CollisionEvents2D = CollisionEvents<2>
 List of collision start events between the objects in a 2-dimensional Simulation.
using CollisionEvents3D = CollisionEvents<3>
 List of collision start events between the objects in a 3-dimensional Simulation.
using SeparationEvent2D = SeparationEvent<2>
 Collision end event between two objects in a 2-dimensional Simulation.
using SeparationEvent3D = SeparationEvent<3>
 Collision end event between two objects in a 3-dimensional Simulation.
using SeparationEvents2D = SeparationEvents<2>
 List of collision end events between the objects in a 2-dimensional Simulation.
using SeparationEvents3D = SeparationEvents<3>
 List of collision end events between the objects in a 3-dimensional Simulation.
using ContactPoint2D = ContactPoint<2>
 Contact point between two potentially colliding objects in a 2-dimensional Simulation.
using ContactPoint3D = ContactPoint<3>
 Contact point between two potentially colliding objects in a 3-dimensional Simulation.
using ContactManifold2D = ContactManifold<2>
 Set of points on the contact surface between two potentially colliding 2-dimensional objects.
using ContactManifold3D = ContactManifold<3>
 Set of points on the contact surface between two potentially colliding 3-dimensional objects.
using CollisionAlgorithmResult2D = CollisionAlgorithmResult<2>
 Result of a 2-dimensional collision algorithm.
using CollisionAlgorithmResult3D = CollisionAlgorithmResult<3>
 Result of a 3-dimensional collision algorithm.
using CollisionAlgorithmOptions2D = CollisionAlgorithmOptions<2>
 Configuration options for a 2-dimensional collision algorithm.
using CollisionAlgorithmOptions3D = CollisionAlgorithmOptions<3>
 Configuration options for a 3-dimensional collision algorithm.
using CollisionAlgorithmImplementation2D = CollisionAlgorithmImplementation<2>
 Base interface for a stateful collision algorithm that generates contact points between two potentially colliding 2-dimensional objects of specific shape types.
using CollisionAlgorithmImplementation3D = CollisionAlgorithmImplementation<3>
 Base interface for a stateful collision algorithm that generates contact points between two potentially colliding 3-dimensional objects of specific shape types.
using CollisionAlgorithm2D = CollisionAlgorithm<2>
 Generic box type for any collision algorithm implementation derived from CollisionAlgorithmImplementation2D.
using CollisionAlgorithm3D = CollisionAlgorithm<3>
 Generic box type for any collision algorithm implementation derived from CollisionAlgorithmImplementation3D.
using Contact2D = Contact<2>
 Potential collision between two objects in a 2-dimensional Simulation, including a stateful collision algorithm for generating the actual contact points between them.
using Contact3D = Contact<3>
 Potential collision between two objects in a 3-dimensional Simulation, including a stateful collision algorithm for generating the actual contact points between them.
using Contacts2D = Contacts<2>
 Set of contacts in a 2-dimensional Simulation.
using Contacts3D = Contacts<3>
 Set of contacts in a 3-dimensional Simulation.
using ShapecastHit2D = ShapecastHit<2>
 Result of a shapecast hit in 2-dimensional space.
using ShapecastHit3D = ShapecastHit<3>
 Result of a shapecast hit in 3-dimensional space.
using ShapecastHitInterior2D = ShapecastHitInterior<2>
 Result of an interior shapecast hit in 2-dimensional space.
using ShapecastHitInterior3D = ShapecastHitInterior<3>
 Result of an interior shapecast hit in 3-dimensional space.
using ShapecastResult2D = ShapecastResult<2>
 Result of a shapecast in 2-dimensional space.
using ShapecastResult3D = ShapecastResult<3>
 Result of a shapecast in 3-dimensional space.
using DebugVisualization2D = DebugVisualization<2>
 Bundle of draw commands for drawing debugging information about a 2-dimensional Simulation.
using DebugVisualization3D = DebugVisualization<3>
 Bundle of draw commands for drawing debugging information about a 3-dimensional Simulation.
using EntityID = execution::EntityID
 Opaque handle to a specific entity in a Simulation's EntityRegistry.
using JointAttachmentOffsets2D = JointAttachmentOffsets<2>
 Local offsets of the attachment frames of the objects connected by a joint in a 2-dimensional world.
using JointAttachmentOffsets3D = JointAttachmentOffsets<3>
 Local offsets of the attachment frames of the objects connected by a joint in a 3-dimensional world.
using JointAttachmentOrientations2D = JointAttachmentOrientations<2>
 Local orientations of the attachment frames of the objects connected by a joint in a 2-dimensional world.
using JointAttachmentOrientations3D = JointAttachmentOrientations<3>
 Local orientations of the attachment frames of the objects connected by a joint in a 3-dimensional world.
using JointLinearConstraint2D = JointLinearConstraint<2>
 Linear limits of a joint in a 2-dimensional world.
using JointLinearConstraint3D = JointLinearConstraint<3>
 Linear limits of a joint in a 3-dimensional world.
using JointLinearConstraintImpulses2D = JointLinearConstraintImpulses<2>
 Impulse applied by the linear limits of a joint in a 2-dimensional world.
using JointLinearConstraintImpulses3D = JointLinearConstraintImpulses<3>
 Impulse applied by the linear limits of a joint in a 3-dimensional world.
using JointDistanceConstraint2D = JointDistanceConstraint<2>
 Distance limit of a joint in a 2-dimensional world.
using JointDistanceConstraint3D = JointDistanceConstraint<3>
 Distance limit of a joint in a 3-dimensional world.
using JointDistanceConstraintImpulses2D = JointDistanceConstraintImpulses<2>
 Impulse applied by the distance limit of a joint in a 2-dimensional world.
using JointDistanceConstraintImpulses3D = JointDistanceConstraintImpulses<3>
 Impulse applied by the distance limit of a joint in a 3-dimensional world.
using JointAngularConstraint2D = JointAngularConstraint<2>
 Angular limits of a joint in a 2-dimensional world.
using JointAngularConstraint3D = JointAngularConstraint<3>
 Angular limits of a joint in a 3-dimensional world.
using JointAngularConstraintImpulses2D = JointAngularConstraintImpulses<2>
 Impulse applied by the angular limits of a joint in a 2-dimensional world.
using JointAngularConstraintImpulses3D = JointAngularConstraintImpulses<3>
 Impulse applied by the angular limits of a joint in a 3-dimensional world.
using JointFlags2D = JointFlags<2>
 Set of boolean properties of a joint in a 2-dimensional world.
using JointFlags3D = JointFlags<3>
 Set of boolean properties of a joint in a 3-dimensional world.
using GenericJointOptions2D = GenericJointOptions<2>
 Configuration options for a generic joint in a 2-dimensional world.
using GenericJointOptions3D = GenericJointOptions<3>
 Configuration options for a generic joint in a 3-dimensional world.
using WeldOptions2D = WeldOptions<2>
 Configuration options for a fully constrained joint in a 2-dimensional world.
using WeldOptions3D = WeldOptions<3>
 Configuration options for a fully constrained joint in a 3-dimensional world.
using HingeJointOptions2D = HingeJointOptions<2>
 Configuration options for a revolute joint in a 2-dimensional world.
using HingeJointOptions3D = HingeJointOptions<3>
 Configuration options for a revolute joint in a 3-dimensional world.
using BallJointOptions2D = BallJointOptions<2>
 Configuration options for a spherical joint in a 2-dimensional world.
using BallJointOptions3D = BallJointOptions<3>
 Configuration options for a spherical joint in a 3-dimensional world.
using PrismaticJointOptions2D = PrismaticJointOptions<2>
 Configuration options for a prismatic joint in a 2-dimensional world.
using PrismaticJointOptions3D = PrismaticJointOptions<3>
 Configuration options for a prismatic joint in a 3-dimensional world.
using CylinderJointOptions2D = CylinderJointOptions<2>
 Configuration options for a cylindrical joint in a 2-dimensional world.
using CylinderJointOptions3D = CylinderJointOptions<3>
 Configuration options for a cylindrical joint in a 3-dimensional world.
using CenterOfBuoyancy2D = CenterOfBuoyancy<2>
 World-space offset of the center of buoyancy of an object in a 2-dimensional world.
using CenterOfBuoyancy3D = CenterOfBuoyancy<3>
 World-space offset of the center of buoyancy of an object in a 3-dimensional world.
using ObjectContacts2D = ObjectContacts<2>
 Potential contacts of a 2-dimensional object.
using ObjectContacts3D = ObjectContacts<3>
 Potential contacts of a 3-dimensional object.
using ObjectBounds2D = ObjectBounds<2>
 Bounds of a 2-dimensional object.
using ObjectBounds3D = ObjectBounds<3>
 Bounds of a 3-dimensional object.
using ObjectOptions2D = ObjectOptions<2>
 Configuration options for an object in a 2-dimensional world.
using ObjectOptions3D = ObjectOptions<3>
 Configuration options for an object in a 3-dimensional world.
template<unit UnitT>
using canonical_unit_t = typename canonical_unit<UnitT>::type
 Canonical unit type of a given unit.
template<unit UnitT>
using in_base_units_t = typename in_base_units<UnitT>::type
 Corresponding instantiation of the BaseUnit type template of a given unit type.
template<typename UnitT1, typename... UnitTs>
using BaseSum = BaseUnit<(UnitT1::DIMENSION + ... + UnitTs::DIMENSION), (UnitT1::MAGNITUDE + ... + UnitTs::MAGNITUDE)>
 The base unit type resulting from adding a set of quantities of the given units.
template<typename UnitT1, typename... UnitTs>
using Sum = canonical_unit_t<BaseSum<UnitT1, UnitTs...>>
 The canonical unit type resulting from adding a set of quantities of the given units.
template<typename UnitT1, typename UnitT2>
using BaseDifference = BaseUnit<(UnitT1::DIMENSION - UnitT2::DIMENSION), (UnitT1::MAGNITUDE - UnitT2::MAGNITUDE)>
 The base unit type resulting from subtracting two quantities of the given units.
template<typename UnitT1, typename UnitT2>
using Difference = canonical_unit_t<BaseDifference<UnitT1, UnitT2>>
 The canonical unit type resulting from subtracting two quantities of the given units.
template<typename UnitT1, typename... UnitTs>
using BaseProduct = BaseUnit<(UnitT1::DIMENSION * ... * UnitTs::DIMENSION), (UnitT1::MAGNITUDE * ... * UnitTs::MAGNITUDE)>
 The base unit type resulting from multiplying a set of quantities of the given units.
template<typename UnitT1, typename... UnitTs>
using Product = canonical_unit_t<BaseProduct<UnitT1, UnitTs...>>
 The canonical unit type resulting from multiplying a set of quantities of the given units.
template<typename UnitT1, typename UnitT2>
using BaseQuotient = BaseUnit<(UnitT1::DIMENSION / UnitT2::DIMENSION), (UnitT1::MAGNITUDE / UnitT2::MAGNITUDE)>
 The base unit type resulting from dividing two quantities of the given units.
template<typename UnitT1, typename UnitT2>
using Quotient = canonical_unit_t<BaseQuotient<UnitT1, UnitT2>>
 The canonical unit type resulting from dividing two quantities of the given units.
template<typename UnitT, long double Multiple>
using BaseMultipleOf = BaseUnit<UnitT::DIMENSION, UnitT::MAGNITUDE * Magnitude<Multiple>{}>
 The base unit type corresponding to a given unit with its magnitude scaled by a given multiplier.
template<typename UnitT, long double Multiple>
using MultipleOf = canonical_unit_t<BaseMultipleOf<UnitT, Multiple>>
 The canonical unit type corresponding to a given unit with its magnitude scaled by a given multiplier.
template<typename UnitT>
using BaseRelative = BaseUnit<UnitT::DIMENSION, Magnitude<UnitT::MagnitudeType::VALUE, false>{}>
 The base unit type corresponding to a given unit with its magnitude made relative.
template<typename UnitT>
using Relative = canonical_unit_t<BaseRelative<UnitT>>
 The canonical unit type corresponding to a given unit with its magnitude made relative.
template<typename UnitT>
using BaseAbsolute = BaseUnit<UnitT::DIMENSION, Magnitude<UnitT::MagnitudeType::VALUE, true>{}>
 The base unit type corresponding to a given unit with its magnitude made absolute.
template<typename UnitT>
using BaseSqrt = BaseUnit<sqrt(UnitT::DIMENSION), sqrt(UnitT::MAGNITUDE)>
 The base unit type resulting from taking the square root of a quantity of the given unit.
template<typename UnitT>
using Sqrt = canonical_unit_t<BaseSqrt<UnitT>>
 The canonical unit type resulting from taking the square root of a quantity of the given unit.
template<typename UnitT>
using BaseReciprocal = BaseUnit<DIMENSIONLESS / UnitT::DIMENSION, Magnitude<1.0l / UnitT::MagnitudeType::VALUE, UnitT::MagnitudeType::IS_ABSOLUTE>{}>
 The base unit type resulting from taking the multiplicative inverse of a quantity of the given unit.
template<typename UnitT>
using Reciprocal = canonical_unit_t<BaseReciprocal<UnitT>>
 The canonical unit type resulting from taking the multiplicative inverse of a quantity of the given unit.
template<typename UnitT>
using BaseSquare = BaseProduct<UnitT, UnitT>
 The base unit type resulting from squaring a quantity of the given unit.
template<typename UnitT>
using Square = canonical_unit_t<BaseSquare<UnitT>>
 The canonical unit type resulting from squaring a quantity of the given unit.
template<typename UnitT>
using BaseCubic = BaseProduct<UnitT, UnitT, UnitT>
 The base unit type resulting from taking the cube of a quantity of the given unit.
template<typename UnitT>
using Cubic = canonical_unit_t<BaseCubic<UnitT>>
 The canonical unit type resulting from taking the cube of a quantity of the given unit.
template<typename UnitT>
using BaseKilo = BaseMultipleOf<UnitT, 1000.0l>
 The base unit type corresponding to a given unit with its magnitude scaled by 1000.
template<typename UnitT>
using Kilo = canonical_unit_t<BaseKilo<UnitT>>
 The canonical unit type corresponding to a given unit with its magnitude scaled by 1000.
template<typename UnitT>
using BaseDeci = BaseMultipleOf<UnitT, 0.1l>
 The base unit type corresponding to a given unit with its magnitude scaled by 1/10.
template<typename UnitT>
using Deci = canonical_unit_t<BaseDeci<UnitT>>
 The canonical unit type corresponding to a given unit with its magnitude scaled by 1/10.
template<typename UnitT>
using BaseCenti = BaseMultipleOf<UnitT, 0.01l>
 The base unit type corresponding to a given unit with its magnitude scaled by 1/100.
template<typename UnitT>
using Centi = canonical_unit_t<BaseCenti<UnitT>>
 The canonical unit type corresponding to a given unit with its magnitude scaled by 1/100.
template<typename UnitT>
using BaseMilli = BaseMultipleOf<UnitT, 0.001l>
 The base unit type corresponding to a given unit with its magnitude scaled by 1/1000.
template<typename UnitT>
using Milli = canonical_unit_t<BaseMilli<UnitT>>
 The canonical unit type corresponding to a given unit with its magnitude scaled by 1/1000.
template<Dimension D>
using BaseSIUnit = BaseUnit<D, Magnitude<1.0l>{}>
 The base relative SI unit type for a given dimension.
template<Dimension D>
using SIUnit = canonical_unit_t<BaseSIUnit<D>>
 The canonical relative SI unit type for a given dimension.
using Scalar = float
 Underlying scalar type of physics quantity components.
template<size_t N, typename UnitT>
using AngularQuantity = std::conditional_t<N == 3, Quantity<3, UnitT>, Quantity<1, UnitT>>
 Physical quantity type representing an angular quantity in world space, with one component in 2D and three components in 3D.
template<size_t N>
using Mask = std::conditional_t<N == 1, bool, vec<N, bool>>
 Boolean quantity.
using Mask1D = Mask<1>
 Boolean quantity in 1-dimensional space. Unitless.
using Mask2D = Mask<2>
 Boolean quantity in 2-dimensional space. Unitless.
using Mask3D = Mask<3>
 Boolean quantity in 3-dimensional space. Unitless.
template<size_t N>
using AngularMask = std::conditional_t<N == 3, Mask<N>, Mask<1>>
 Angular boolean quantity.
using AngularMask2D = AngularMask<2>
 Angular boolean quantity in 2-dimensional space. Unitless.
using AngularMask3D = AngularMask<3>
 Angular boolean quantity in 2-dimensional space. Unitless.
template<size_t N, typename UnitT>
using AngularTensorQuantity = std::conditional_t<N == 3, TensorQuantity<3, UnitT>, Quantity<1, UnitT>>
template<size_t N>
using Scale = Quantity<N, Unitless>
 Dimensionless scale.
using Scale1D = Scale<1>
 Dimensionless scale in 1-dimensional space. Unitless.
using Scale2D = Scale<2>
 Dimensionless scale in 2-dimensional space. Unitless.
using Scale3D = Scale<3>
 Dimensionless scale in 3-dimensional space. Unitless.
using Coefficient = Scale1D
 Unitless scalar quantity.
template<size_t N>
using Basis = TensorQuantity<N, Unitless>
 Basis matrix.
using Basis2D = Basis<2>
 Basis matrix in 2-dimensional space. Unitless.
using Basis3D = Basis<3>
 Basis matrix in 3-dimensional space. Unitless.
template<size_t N>
using AngularScale = AngularQuantity<N, Unitless>
 Angular dimensionless scale.
using AngularScale2D = AngularScale<2>
 Angular dimensionless scale in 2-dimensional space. Unitless.
using AngularScale3D = AngularScale<3>
 Angular dimensionless scale in 3-dimensional space. Unitless.
using Angle = Quantity<1, Radians>
 Angle quantity.
using AbsoluteAngle = Quantity<1, Absolute<Radians>>
 Absolute angle in world space.
template<size_t N>
using AbsoluteAngles = AngularQuantity<N, Absolute<Radians>>
 Absolute angles in world space.
using Roll = AbsoluteAngles<2>
 Absolute angle in 2-dimensional space.
using PitchYaw = Quantity<2, Absolute<Radians>>
 Absolute angles in 3-dimensional space without roll.
using PitchYawRoll = AbsoluteAngles<3>
 Absolute angles in 3-dimensional space.
using RollRotation = Angle
 Relative rotation of roll.
using PitchYawRotations = Quantity<2, Radians>
 Relative rotations of pitch and yaw.
using PitchYawRollRotations = Quantity<3, Radians>
 Relative rotations of pitch, yaw and roll.
template<size_t N>
using Rotation = AngularQuantity<N, Radians>
 Relative rotation quantity.
using Rotation2D = Rotation<2>
 Relative rotation in 2-dimensional space. Unit: Radians.
using Rotation3D = Rotation<3>
 Relative rotation in 3-dimensional space. Unit: Radians.
using Direction2D = Direction<2>
 Normalized unit vector in 2-dimensional space. Unitless.
using Direction3D = Direction<3>
 Normalized unit vector in 3-dimensional space. Unitless.
using OrthonormalBasis2D = OrthonormalBasis<2>
 Basis in 2-dimensional space whose columns are all unit vectors that are orthogonal to each other. Unitless.
using OrthonormalBasis3D = OrthonormalBasis<3>
 Basis in 3-dimensional space whose columns are all unit vectors that are orthogonal to each other. Unitless.
using Orientation2D = Orientation<2>
 Absolute orientation in 2-dimensional space. Unit: Radians.
using Orientation3D = Orientation<3>
 Absolute orientation in 3-dimensional space. Unit: Radians.
template<size_t N>
using Length = Quantity<N, Meters>
 Relative distance/length offset quantity.
using Length1D = Length<1>
 Relative distance/length offset in 1-dimensional space. Unit: Meters.
using Length2D = Length<2>
 Relative distance/length offset in 2-dimensional space. Unit: Meters.
using Length3D = Length<3>
 Relative distance/length offset in 3-dimensional space. Unit: Meters.
template<size_t N>
using LengthTensor = TensorQuantity<N, Meters>
 Tensor of length quantities.
using LengthTensor2D = LengthTensor<2>
 Tensor of length quantities in 2-dimensional space. Unit: Meters.
using LengthTensor3D = LengthTensor<3>
 Tensor of length quantities in 3-dimensional space. Unit: Meters.
template<size_t N>
using Position = Quantity<N, Absolute<Meters>>
 Absolute position in world space.
using Position1D = Position<1>
 Absolute position in 1-dimensional space. Unit: Meters.
using Position2D = Position<2>
 Absolute position in 2-dimensional space. Unit: Meters.
using Position3D = Position<3>
 Absolute position in 3-dimensional space. Unit: Meters.
using Distance = Length1D
 Scalar length quantity.
using SquaredLength = Quantity<1, SquareMeters>
 Scalar squared length quantity.
using SquaredDistance = SquaredLength
 Scalar squared length quantity.
using LocalTransformation2D = LocalTransformation<2>
 Affine transformation in 2-dimensional local space.
using LocalTransformation3D = LocalTransformation<3>
 Affine transformation in 3-dimensional local space.
using Transformation2D = Transformation<2>
 Affine transformation in 2-dimensional space.
using Transformation3D = Transformation<3>
 Affine transformation in 3-dimensional space.
using InverseLocalTransformation2D = InverseLocalTransformation<2>
 Inverse of an affine transformation in 2-dimensional local space.
using InverseLocalTransformation3D = InverseLocalTransformation<3>
 Inverse of an affine transformation in 3-dimensional local space.
using InverseTransformation2D = InverseTransformation<2>
 Inverse of an affine transformation in 2-dimensional space.
using InverseTransformation3D = InverseTransformation<3>
 Inverse of an affine transformation in 3-dimensional space.
using Mass = Quantity<1, Kilograms>
 Scalar mass quantity.
using InverseMass = Quantity<1, PerKilogram>
 Scalar inverse mass quantity.
using Time = Quantity<1, Seconds>
 Scalar relative time duration quantity.
using Area = Quantity<1, SquareMeters>
 Scalar area quantity.
using SquaredArea = Quantity<1, Square<SquareMeters>>
 Scalar squared area quantity.
using Volume = Quantity<1, CubicMeters>
 Scalar volume quantity.
using SquaredVolume = Quantity<1, Square<CubicMeters>>
 Scalar squared volume quantity.
using Density = Quantity<1, KilogramsPerCubicMeter>
 Scalar density quantity.
template<size_t N>
using Rate = Quantity<N, Hertz>
 Frequency quantity.
using Rate1D = Rate<1>
 Frequency in 1-dimensional space. Unit: Hertz (AKA per second).
using Rate2D = Rate<2>
 Frequency in 2-dimensional space. Unit: Hertz (AKA per second).
using Rate3D = Rate<3>
 Frequency in 3-dimensional space. Unit: Hertz (AKA per second).
using Frequency = Rate1D
 Scalar frequency quantity.
template<size_t N>
using AngularFrequency = AngularQuantity<N, Hertz>
 Angular frequency quantity.
using AngularFrequency2D = AngularFrequency<2>
 Angular frequency in 2-dimensional space. Unit: Hertz (AKA per second).
using AngularFrequency3D = AngularFrequency<3>
 Angular frequency in 3-dimensional space. Unit: Hertz (AKA per second).
template<size_t N>
using LinearAbsement = Quantity<N, MeterSeconds>
 Linear absement quantity.
using LinearAbsement1D = LinearAbsement<1>
 Linear absement in 1-dimensional space. Unit: Meter seconds.
using LinearAbsement2D = LinearAbsement<2>
 Linear absement in 2-dimensional space. Unit: Meter seconds.
using LinearAbsement3D = LinearAbsement<3>
 Linear absement in 3-dimensional space. Unit: Meter seconds.
using Wavenumber = Quantity<1, PerMeter>
 Scalar wavenumber quantity.
template<size_t N>
using LinearVelocity = Quantity<N, MetersPerSecond>
 Linear velocity quantity.
using LinearVelocity1D = LinearVelocity<1>
 Linear velocity in 1-dimensional space. Unit: Meters per second.
using LinearVelocity2D = LinearVelocity<2>
 Linear velocity in 2-dimensional space. Unit: Meters per second.
using LinearVelocity3D = LinearVelocity<3>
 Linear velocity in 3-dimensional space. Unit: Meters per second.
using Speed = LinearVelocity1D
 Scalar linear velocity quantity.
template<size_t N>
using LinearVelocityTensor = TensorQuantity<N, MetersPerSecond>
 Tensor of linear velocity quantities.
using LinearVelocityTensor2D = LinearVelocityTensor<2>
 Tensor of linear velocity quantities in 2-dimensional space. Unit: Meters per second.
using LinearVelocityTensor3D = LinearVelocityTensor<3>
 Tensor of linear velocity quantities in 3-dimensional space. Unit: Meters per second.
using SquaredSpeed = Quantity<1, Square<MetersPerSecond>>
 Scalar squared speed quantity.
template<size_t N>
using LinearAcceleration = Quantity<N, MetersPerSecondSquared>
 Linear acceleration quantity.
using LinearAcceleration1D = LinearAcceleration<1>
 Linear acceleration in 1-dimensional space. Unit: Meters per second squared.
using LinearAcceleration2D = LinearAcceleration<2>
 Linear acceleration in 2-dimensional space. Unit: Meters per second squared.
using LinearAcceleration3D = LinearAcceleration<3>
 Linear acceleration in 3-dimensional space. Unit: Meters per second squared.
using Acceleration = LinearAcceleration1D
 Linear acceleration quantity. Unit: Meters per second squared.
using SquaredAcceleration = Quantity<1, Square<MetersPerSecondSquared>>
 Scalar squared acceleration quantity.
template<size_t N>
using LinearAccelerationTensor = TensorQuantity<N, MetersPerSecondSquared>
 Tensor of linear acceleration quantities.
using LinearAccelerationTensor2D = LinearAccelerationTensor<2>
 Tensor of linear acceleration quantities in 2-dimensional space. Unit: Meters per second squared.
using LinearAccelerationTensor3D = LinearAccelerationTensor<3>
 Tensor of linear acceleration quantities in 3-dimensional space. Unit: Meters per second squared.
template<size_t N>
using Force = Quantity<N, Newton>
 Force quantity.
using Force1D = Force<1>
 Force in 1-dimensional space. Unit: Newton (AKA kilogram meters per second squared).
using Force2D = Force<2>
 Force in 2-dimensional space. Unit: Newton (AKA kilogram meters per second squared).
using Force3D = Force<3>
 Force in 3-dimensional space. Unit: Newton (AKA kilogram meters per second squared).
template<size_t N>
using ForceTensor = TensorQuantity<N, Newton>
 Tensor of force quantities.
using ForceTensor2D = ForceTensor<2>
 Tensor of force quantities in 2-dimensional space. Unit: Newton (AKA kilogram meters per second squared).
using ForceTensor3D = ForceTensor<3>
 Tensor of force quantities in 3-dimensional space. Unit: Newton (AKA kilogram meters per second squared).
template<size_t N>
using Torque = AngularQuantity<N, NewtonMeters>
 Torque quantity.
using Torque2D = Torque<2>
 Torque in 2-dimensional space. Unit: Newton meters (AKA kilogram square meters per second squared).
using Torque3D = Torque<3>
 Torque in 3-dimensional space. Unit: Newton meters (AKA kilogram square meters per second squared).
template<size_t N>
using TorqueTensor = TensorQuantity<N, NewtonMeters>
 Tensor of torque quantities.
using TorqueTensor2D = TorqueTensor<2>
 Tensor of torque quantities in 2-dimensional space. Unit: Newton meters (AKA kilogram square meters per second squared).
using TorqueTensor3D = TorqueTensor<3>
 Tensor of torque quantities in 3-dimensional space. Unit: Newton meters (AKA kilogram square meters per second squared).
template<size_t N>
using LinearImpulse = Quantity<N, NewtonSeconds>
 Linear impulse quantity.
using LinearImpulse1D = LinearImpulse<1>
 Linear impulse in 1-dimensional space. Unit: Newton seconds (AKA kilogram meters per second).
using LinearImpulse2D = LinearImpulse<2>
 Linear impulse in 2-dimensional space. Unit: Newton seconds (AKA kilogram meters per second).
using LinearImpulse3D = LinearImpulse<3>
 Linear impulse in 3-dimensional space. Unit: Newton seconds (AKA kilogram meters per second).
using Impulse = LinearImpulse1D
 Scalar linear impulse quantity.
template<size_t N>
using LinearImpulseTensor = TensorQuantity<N, NewtonSeconds>
 Tensor of linear impulse quantities.
using LinearImpulseTensor2D = LinearImpulseTensor<2>
 Tensor of linear impulse quantities in 2-dimensional space. Unit: Newton seconds (AKA kilogram meters per second).
using LinearImpulseTensor3D = LinearImpulseTensor<3>
 Tensor of linear impulse quantities in 3-dimensional space. Unit: Newton seconds (AKA kilogram meters per second).
template<size_t N>
using LinearMomentum = Quantity<N, KilogramMetersPerSecond>
 Linear momentum quantity.
using LinearMomentum1D = LinearMomentum<1>
 Linear momentum in 1-dimensional space. Unit: Kilogram meters per second.
using LinearMomentum2D = LinearMomentum<2>
 Linear momentum in 2-dimensional space. Unit: Kilogram meters per second.
using LinearMomentum3D = LinearMomentum<3>
 Linear momentum in 3-dimensional space. Unit: Kilogram meters per second.
using Momentum = LinearMomentum1D
 Scalar linear momentum quantity.
template<size_t N>
using LinearMomentumTensor = TensorQuantity<N, KilogramMetersPerSecond>
 Tensor of linear momentum quantities.
using LinearMomentumTensor2D = LinearMomentumTensor<2>
 Tensor of linear momentum quantities in 2-dimensional space. Unit: Kilogram meters per second.
using LinearMomentumTensor3D = LinearMomentumTensor<3>
 Tensor of linear momentum quantities in 3-dimensional space. Unit: Kilogram meters per second.
template<size_t N>
using MomentOfInertia = AngularQuantity<N, KilogramSquareMeters>
 Moment of inertia quantity.
using MomentOfInertia2D = MomentOfInertia<2>
 Moment of inertia in 2-dimensional space. Unit: Kilogram square meters.
using MomentOfInertia3D = MomentOfInertia<3>
 Moment of inertia in 3-dimensional space. Unit: Kilogram square meters.
template<size_t N>
using MomentOfInertiaTensor = AngularTensorQuantity<N, KilogramSquareMeters>
 Tensor of moment of inertia quantities.
using MomentOfInertiaTensor2D = MomentOfInertiaTensor<2>
 Tensor of moment of inertia quantities in 2-dimensional space. Unit: Kilogram square meters.
using MomentOfInertiaTensor3D = MomentOfInertiaTensor<3>
 Tensor of moment of inertia quantities in 3-dimensional space. Unit: Kilogram square meters.
template<size_t N>
using InverseMomentOfInertia = AngularQuantity<N, PerKilogramSquareMeter>
 Inverse moment of inertia quantity.
using InverseMomentOfInertia2D = InverseMomentOfInertia<2>
 Inverse moment of inertia in 2-dimensional space. Unit: Kilogram square meters.
using InverseMomentOfInertia3D = InverseMomentOfInertia<3>
 Inverse moment of inertia in 3-dimensional space. Unit: Kilogram square meters.
template<size_t N>
using InverseMomentOfInertiaTensor = AngularTensorQuantity<N, PerKilogramSquareMeter>
 Tensor of inverse moment of inertia quantities.
using InverseMomentOfInertiaTensor2D = InverseMomentOfInertiaTensor<2>
 Tensor of inverse moment of inertia quantities in 2-dimensional space. Unit: Per kilogram square meter.
using InverseMomentOfInertiaTensor3D = InverseMomentOfInertiaTensor<3>
 Tensor of inverse moment of inertia quantities in 3-dimensional space. Unit: Per kilogram square meter.
template<size_t N>
using PrincipalMomentsOfInertia = AngularQuantity<N, KilogramSquareMeters>
 Principal moments of inertia in inertia major axis space.
using PrincipalMomentsOfInertia2D = PrincipalMomentsOfInertia<2>
 Principal moments of inertia in 2-dimensional inertia major axis space. Unit: kilogram square meters.
using PrincipalMomentsOfInertia3D = PrincipalMomentsOfInertia<3>
 Principal moments of inertia in 3-dimensional inertia major axis space. Unit: kilogram square meters.
using LocalInertiaOrientation2D = LocalInertiaOrientation<2>
 Local inertia orientation of an object in 2-dimensional space. Unit: Radians.
using LocalInertiaOrientation3D = LocalInertiaOrientation<3>
 Local inertia orientation of an object in 3-dimensional space. Unit: Radians.
template<size_t N>
using InversePrincipalMomentsOfInertia = AngularQuantity<N, Reciprocal<KilogramSquareMeters>>
 Inverse principal moments of inertia in inertia major axis space.
using InversePrincipalMomentsOfInertia2D
 Inverse principal moments of inertia in 2-dimensional inertia major axis space. Unit: Per kilogram square meter.
using InversePrincipalMomentsOfInertia3D
 Inverse principal moments of inertia in 3-dimensional inertia major axis space. Unit: Per kilogram square meter.
template<size_t N>
using MomentArm = AngularQuantity<N, Meters>
 Moment arm quantity.
using MomentArm2D = MomentArm<2>
 Moment arm in 2-dimensional space. Unit: Meters.
using MomentArm3D = MomentArm<3>
 Moment arm in 3-dimensional space. Unit: Meters.
template<size_t N>
using MomentArmTensor = TensorQuantity<N, Meters>
 Tensor of moment arm quantities.
using MomentArmTensor2D = MomentArmTensor<2>
 Tensor of moment arm quantities in 2-dimensional space. Unit: Meters.
using MomentArmTensor3D = MomentArmTensor<3>
 Tensor of moment arm quantities in 3-dimensional space. Unit: Meters.
template<size_t N>
using AngularAbsement = AngularQuantity<N, RadianSeconds>
 Angular absement quantity.
using AngularAbsement2D = AngularAbsement<2>
 Angular absement in 2-dimensional space. Unit: Radian seconds.
using AngularAbsement3D = AngularAbsement<3>
 Angular absement in 3-dimensional space. Unit: Radian seconds.
template<size_t N>
using AngularVelocity = AngularQuantity<N, RadiansPerSecond>
 Angular velocity quantity.
using AngularVelocity2D = AngularVelocity<2>
 Angular velocity in 2-dimensional space. Unit: Radians per second.
using AngularVelocity3D = AngularVelocity<3>
 Angular velocity in 3-dimensional space. Unit: Radians per second.
using AngularSpeed = Quantity<1, RadiansPerSecond>
 Scalar angular speed quantity.
template<size_t N>
using AngularVelocityTensor = AngularTensorQuantity<N, RadiansPerSecond>
 Tensor of angular velocity quantities.
using AngularVelocityTensor2D = AngularVelocityTensor<2>
 Tensor of angular velocity quantities in 2-dimensional space. Unit: Radians per second.
using AngularVelocityTensor3D = AngularVelocityTensor<3>
 Tensor of angular velocity quantities in 3-dimensional space. Unit: Radians per second.
using SquaredAngularSpeed = Quantity<1, Square<RadiansPerSecond>>
 Scalar squared angular speed quantity.
using RollRate = AngularSpeed
 Time derivative of roll.
using PitchYawRates = Quantity<2, RadiansPerSecond>
 Time derivatives of pitch and yaw.
using PitchYawRollRates = Quantity<3, RadiansPerSecond>
 Time derivatives of pitch, yaw and roll.
template<size_t N>
using AngularAcceleration = AngularQuantity<N, RadiansPerSecondSquared>
 Angular acceleration quantity.
using AngularAcceleration2D = AngularAcceleration<2>
 Angular acceleration in 2-dimensional space. Unit: Radians per second squared.
using AngularAcceleration3D = AngularAcceleration<3>
 Angular acceleration in 3-dimensional space. Unit: Radians per second squared.
template<size_t N>
using AngularAccelerationTensor = AngularTensorQuantity<N, RadiansPerSecondSquared>
 Tensor of angular acceleration quantities.
using AngularAccelerationTensor2D = AngularAccelerationTensor<2>
 Tensor of angular acceleration quantities in 2-dimensional space. Unit: Radians per second squared.
using AngularAccelerationTensor3D = AngularAccelerationTensor<3>
 Tensor of angular acceleration quantities in 3-dimensional space. Unit: Radians per second squared.
template<size_t N>
using AngularImpulse = AngularQuantity<N, NewtonMeterSeconds>
 Angular impulse quantity.
using AngularImpulse2D = AngularImpulse<2>
 Angular impulse in 2-dimensional space. Unit: Newton meter seconds.
using AngularImpulse3D = AngularImpulse<3>
 Angular impulse in 3-dimensional space. Unit: Newton meter seconds.
template<size_t N>
using AngularImpulseTensor = AngularTensorQuantity<N, NewtonMeterSeconds>
 Tensor of angular impulse quantities.
using AngularImpulseTensor2D
 Tensor of angular impulse quantities in 2-dimensional space. Unit: Newton meter seconds (AKA kilogram square meters per second).
using AngularImpulseTensor3D
 Tensor of angular impulse quantities in 3-dimensional space. Unit: Newton meter seconds (AKA kilogram square meters per second).
template<size_t N>
using AngularMomentum = AngularQuantity<N, KilogramSquareMetersPerSecond>
 Angular momentum quantity.
using AngularMomentum2D = AngularMomentum<2>
 Angular momentum in 2-dimensional space. Unit: kilogram square meters per second.
using AngularMomentum3D = AngularMomentum<3>
 Angular momentum in 3-dimensional space. Unit: kilogram square meters per second.
template<size_t N>
using AngularMomentumTensor = AngularTensorQuantity<N, KilogramSquareMetersPerSecond>
 Tensor of angular momentum quantities.
using AngularMomentumTensor2D = AngularMomentumTensor<2>
 Tensor of angular momentum quantities in 2-dimensional space. Unit: Kilogram square meters per second.
using AngularMomentumTensor3D = AngularMomentumTensor<3>
 Tensor of angular momentum quantities in 3-dimensional space. Unit: Kilogram square meters per second.
using LinearViscousDamping = Quantity<1, NewtonSecondsPerMeter>
 Scalar linear viscous damping quantity.
using AngularViscousDamping = Quantity<1, NewtonMeterSecondsPerRadian>
 Scalar angular viscous damping quantity.
using MassFlowRate = Quantity<1, KilogramsPerSecond>
 Scalar mass flow rate quantity.
using VolumetricFlowRate = Quantity<1, CubicMetersPerSecond>
 Scalar volumetric flow rate quantity.
using Work = Quantity<1, Joules>
 Scalar mechanical work quantity.
using Power = Quantity<1, Watts>
 Scalar mechanical power quantity.
using Energy = Quantity<1, Joules>
 Scalar energy quantity.
using Stiffness = Quantity<1, NewtonPerMeter>
 Stiffness quantity.
using Compliance = Quantity<1, MetersPerNewton>
 Compliance quantity.
using Ray2D = Ray<2>
 Description of a ray in 2-dimensional space.
using Ray3D = Ray<3>
 Description of a ray in 3-dimensional space.
using RayHit2D = RayHit<2>
 Result of a raycast hit in 2-dimensional space.
using RayHit3D = RayHit<3>
 Result of a raycast hit in 3-dimensional space.
using RayHitInterior2D = RayHitInterior<2>
 Result of a raycast interior hit in 2-dimensional space.
using RayHitInterior3D = RayHitInterior<3>
 Result of a raycast interior hit in 3-dimensional space.
using RaycastResult2D = RaycastResult<2>
 Result of a raycast in 2-dimensional space.
using RaycastResult3D = RaycastResult<3>
 Result of a raycast in 3-dimensional space.
using Plane2D = Plane<2>
 Description of an infinite plane in 2-dimensional space.
using Plane3D = Plane<3>
 Description of an infinite plane in 3-dimensional space.
using LineSegment2D = LineSegment<2>
 Description of a line segment in 2-dimensional space.
using LineSegment3D = LineSegment<3>
 Description of a line segment in 3-dimensional space.
using Box2D = Box<2>
 Description of an axis-aligned box in 2-dimensional space.
using Box3D = Box<3>
 Description of an axis-aligned box in 3-dimensional space.
using Sphere2D = Sphere<2>
 Description of a sphere in 2-dimensional space.
using Sphere3D = Sphere<3>
 Description of a sphere in 3-dimensional space.
using Circle = Sphere2D
 Description of a circle in 2-dimensional space.
using Triangle2D = Triangle<2>
 Description of a triangle in 2-dimensional space.
using Triangle3D = Triangle<3>
 Description of a triangle in 3-dimensional space.
using PointShape2D = PointShape<2>
 Point shape in 2-dimensional space.
using PointShape3D = PointShape<3>
 Point shape in 3-dimensional space.
using LineSegmentShape2D = LineSegmentShape<2>
 Line segment shape parallel to the local Y axis in 2-dimensional space.
using LineSegmentShape3D = LineSegmentShape<3>
 Line segment shape parallel to the local Y axis in 3-dimensional space.
using InfiniteLineShape2D = InfiniteLineShape<2>
 Infinite line shape parallel to the local Y axis in 2-dimensional space.
using InfiniteLineShape3D = InfiniteLineShape<3>
 Infinite line shape parallel to the local Y axis in 3-dimensional space.
using InfiniteHalfSpaceShape2D = InfiniteHalfSpaceShape<2>
 Infinite half-space shape perpendicular to the local Y axis in 2-dimensional space.
using InfiniteHalfSpaceShape3D = InfiniteHalfSpaceShape<3>
 Infinite half-space shape perpendicular to the local Y axis in 3-dimensional space.
using BoxShape2D = BoxShape<2>
 Box shape in 2-dimensional space.
using BoxShape3D = BoxShape<3>
 Box shape in 3-dimensional space.
using RectangleShape2D = BoxShape2D
 Rectangle shape in 2-dimensional space.
using CubeShape2D = CubeShape<2>
 Cube shape in 2-dimensional space.
using CubeShape3D = CubeShape<3>
 Cube shape in 3-dimensional space.
using SquareShape2D = CubeShape2D
 Square shape in 2-dimensional space.
using EllipsoidShape2D = EllipsoidShape<2>
 Ellipsoid shape in 2-dimensional space.
using EllipsoidShape3D = EllipsoidShape<3>
 Ellipsoid shape in 3-dimensional space.
using EllipseShape2D = EllipsoidShape2D
 Ellipse shape in 2-dimensional space.
using SphereShape2D = SphereShape<2>
 Sphere shape in 2-dimensional space.
using SphereShape3D = SphereShape<3>
 Sphere shape in 3-dimensional space.
using CircleShape2D = SphereShape2D
 Circle shape in 2-dimensional space.
using CapsuleShape2D = CapsuleShape<2>
 Capsule shape aligned with the local Y axis in 2-dimensional space.
using CapsuleShape3D = CapsuleShape<3>
 Capsule shape aligned with the local Y axis in 3-dimensional space.
using StadiumShape2D = CapsuleShape2D
 Stadium shape in 2-dimensional space.
using TaperedCapsuleShape2D = TaperedCapsuleShape<2>
 Tapered capsule shape aligned with the local Y axis in 2-dimensional space.
using TaperedCapsuleShape3D = TaperedCapsuleShape<3>
 Tapered capsule shape aligned with the local Y axis in 3-dimensional space.
using ConvexPolytopeShape2D = ConvexPolytopeShape<2>
 Convex polytope shape in 2-dimensional space.
using ConvexPolytopeShape3D = ConvexPolytopeShape<3>
 Convex polytope shape in 3-dimensional space.
using TriangleMeshShape2D = TriangleMeshShape<2>
 Triangle mesh shape in 2-dimensional space.
using TriangleMeshShape3D = TriangleMeshShape<3>
 Triangle mesh shape in 3-dimensional space.
using LocallyTransformedShape2D = LocallyTransformedShape<2>
 Wrapper of another shape with a local transformation applied to it in 2-dimensional space.
using LocallyTransformedShape3D = LocallyTransformedShape<3>
 Wrapper of another shape with a local transformation applied to it in 3-dimensional space.
using SubCollider2D = SubCollider<2>
 Sub-collider of a compound collider shape in 2-dimensional space.
using SubCollider3D = SubCollider<3>
 Sub-collider of a compound collider shape in 3-dimensional space.
using CompoundColliderShape2D = CompoundColliderShape<2>
 Shape that combines multiple colliders in 2-dimensional space.
using CompoundColliderShape3D = CompoundColliderShape<3>
 Shape that combines multiple colliders in 3-dimensional space.
using Shape2D = Shape<2>
 Generic shape in 2-dimensional space.
using Shape3D = Shape<3>
 Generic shape in 3-dimensional space.
using Collider2D = Collider<2>
 Generic collider in 2-dimensional space.
using Collider3D = Collider<3>
 Generic collider in 3-dimensional space.
using ShapeView2D = ShapeView<2>
 View of a generic shape in 2-dimensional space.
using ShapeView3D = ShapeView<3>
 View of a generic shape in 3-dimensional space.
using ConvexShapeView2D = ConvexShapeView<2>
 View of a generic convex shape in 2-dimensional space.
using ConvexShapeView3D = ConvexShapeView<3>
 View of a generic convex shape in 3-dimensional space.
using ConvexPolytopeShapeView2D = ConvexPolytopeShapeView<2>
 View of a generic convex polytope shape in 2-dimensional space.
using ConvexPolytopeShapeView3D = ConvexPolytopeShapeView<3>
 View of a generic convex polytope shape in 3-dimensional space.
using ColliderView2D = ColliderView<2>
 View of a generic collider in 2-dimensional space.
using ColliderView3D = ColliderView<3>
 View of a generic collider in 3-dimensional space.
using SimulationOptions2D = SimulationOptions<2>
 Configuration options for a 2-dimensional Simulation.
using SimulationOptions3D = SimulationOptions<3>
 Configuration options for a 3-dimensional Simulation.
template<size_t N>
using EntityRegistry
 Entity registry used by a Simulation.
using EntityRegistry2D = EntityRegistry<2>
 Entity registry used by a 2-dimensional Simulation.
using EntityRegistry3D = EntityRegistry<3>
 Entity registry used by a 3-dimensional Simulation.
template<size_t N>
using ResourceRegistry
 Resource registry used by a Simulation.
using ResourceRegistry2D = ResourceRegistry<2>
 Resource registry used by a 2-dimensional Simulation.
using ResourceRegistry3D = ResourceRegistry<3>
 Resource registry used by a 3-dimensional Simulation.
template<size_t N>
using EntityBuilder = execution::EntityBuilder<EntityRegistry<N>>
 Entity builder used by a Simulation.
using EntityBuilder2D = EntityBuilder<2>
 Entity builder used by a 2-dimensional Simulation.
using EntityBuilder3D = EntityBuilder<3>
 Entity builder used by a 3-dimensional Simulation.
template<size_t N>
using Scheduler = execution::Scheduler<EntityRegistry<N>, ResourceRegistry<N>>
 Scheduler used by a Simulation.
using Scheduler2D = Scheduler<2>
 Scheduler used by a 2-dimensional Simulation.
using Scheduler3D = Scheduler<3>
 Scheduler used by a 3-dimensional Simulation.
template<size_t N>
using Schedule = execution::Schedule<EntityRegistry<N>, ResourceRegistry<N>>
 Schedule used by a Simulation.
using Schedule2D = Schedule<2>
 Schedule used by a 2-dimensional Simulation.
using Schedule3D = Schedule<3>
 Schedule used by a 3-dimensional Simulation.
using ScheduleStepOptions2D = ScheduleStepOptions<2>
 Options for scheduling a step of a 2-dimensional Simulation.
using ScheduleStepOptions3D = ScheduleStepOptions<3>
 Options for scheduling a step of a 3-dimensional Simulation.
using Simulation2D = Simulation<2>
 Discrete-time simulation of physical interactions between objects and joints in 2-dimensional space.
using Simulation3D = Simulation<3>
 Discrete-time simulation of physical interactions between objects and joints in 3-dimensional space.

Enumerations

enum class  ContactFeatureType : uint8_t {
  GENERIC_CONVEX_SURFACE , CONVEX_POLYTOPE_FACE , CONVEX_POLYTOPE_EDGE , TRIANGLE_MESH_FACE ,
  TRIANGLE_MESH_EDGE
}
 Type of a potentially colliding feature in a contact between two objects. More...

Functions

CollisionFilterTestResult containsPoint (const Position2D &pointA, CollisionFilter filterA, ColliderView2D colliderB, const Transformation2D &transformationB, CollisionFilterTest filterTest={})
 Check if a collider contains a given point.
CollisionFilterTestResult containsPoint (const Position3D &pointA, CollisionFilter filterA, ColliderView3D colliderB, const Transformation3D &transformationB, CollisionFilterTest filterTest={})
 Check if a collider contains a given point.
Pair< RaycastResult2D, CollisionFilterTestResult > raycast (const Ray2D &rayA, CollisionFilter filterA, ColliderView2D colliderB, const Transformation2D &transformationB, CollisionFilterTest filterTest={})
 Find the first collision of a ray with a collider.
Pair< RaycastResult3D, CollisionFilterTestResult > raycast (const Ray3D &rayA, CollisionFilter filterA, ColliderView3D colliderB, const Transformation3D &transformationB, CollisionFilterTest filterTest={})
 Find the first collision of a ray with a collider.
Pair< ShapecastResult2D, CollisionFilterTestResult > shapecast (ConvexShapeView2D convexShapeA, CollisionFilter filterA, const Transformation2D &transformationA, ColliderView2D colliderB, const Transformation2D &transformationB, Direction2D direction, Distance maxDistance, const CollisionAlgorithmOptions2D &options, CollisionFilterTest filterTest={})
 Find the first collision between a convex shape a collider when the convex shape is cast from a given starting transformation towards a given direction.
Pair< ShapecastResult3D, CollisionFilterTestResult > shapecast (ConvexShapeView3D convexShapeA, CollisionFilter filterA, const Transformation3D &transformationA, ColliderView3D colliderB, const Transformation3D &transformationB, Direction3D direction, Distance maxDistance, const CollisionAlgorithmOptions3D &options, CollisionFilterTest filterTest={})
 Find the first collision between a convex shape a collider when the convex shape is cast from a given starting transformation towards a given direction.
Coefficient calculateCombinedStaticFriction (Coefficient staticFrictionA, Coefficient staticFrictionB, Material::FrictionCombine frictionCombineA, Material::FrictionCombine frictionCombineB)
 Combine the static friction of two objects based on their friction combination modes.
Coefficient calculateCombinedKineticFriction (Coefficient kineticFrictionA, Coefficient kineticFrictionB, Material::FrictionCombine frictionCombineA, Material::FrictionCombine frictionCombineB)
 Combine the kinetic friction of two objects based on their friction combination modes.
Coefficient calculateCombinedRollingResistance (Coefficient rollingResistanceA, Coefficient rollingResistanceB, Material::FrictionCombine frictionCombineA, Material::FrictionCombine frictionCombineB)
 Combine the rolling resistance of two objects based on their friction combination modes.
Coefficient calculateCombinedRestitution (Coefficient restitutionA, Coefficient restitutionB, Material::RestitutionCombine restitutionCombineA, Material::RestitutionCombine restitutionCombineB)
 Combine the restitution of two objects based on their restitution combination modes.
InverseMass calculateInverseMass (Mass mass)
 Calculate the inverse mass of a given mass, while accounting for 0 and infinity.
Mass calculateMass (InverseMass inverseMass)
 Calculate the mass of a given inverse mass, while accounting for 0 and infinity.
InverseMomentOfInertia2D calculateInverseMomentOfInertia (MomentOfInertia2D momentOfInertia)
 Calculate the inverse moment of inertia of a given moment of inertia, while accounting for 0 and infinity.
InverseMomentOfInertia3D calculateInverseMomentOfInertia (MomentOfInertia3D momentOfInertia)
 Calculate the inverse moment of inertia of a given moment of inertia, while accounting for 0 and infinity.
MomentOfInertia2D calculateMomentOfInertia (InverseMomentOfInertia2D inverseMomentOfInertia)
 Calculate the moment of inertia of a given inverse moment of inertia, while accounting for 0 and infinity.
MomentOfInertia3D calculateMomentOfInertia (InverseMomentOfInertia3D inverseMomentOfInertia)
 Calculate the moment of inertia of a given inverse moment of inertia, while accounting for 0 and infinity.
template<size_t N>
PrincipalMomentsOfInertia< N > calculatePrincipalMomentsOfInertia (const Shape< N > &shape, Mass mass)
 Calculate the principal moments of inertia of an object given its shape and mass.
MomentOfInertiaTensor2D calculateMomentOfInertiaTensor (PrincipalMomentsOfInertia2D principalMomentsOfInertia, LocalInertiaOrientation2D localInertiaOrientation, Orientation2D orientation)
 Calculate the world-space moment of inertia tensor of an object given its principal moments of inertia, the local orientation of the inertia frame, and the world-space orientation of the object.
MomentOfInertiaTensor3D calculateMomentOfInertiaTensor (PrincipalMomentsOfInertia3D principalMomentsOfInertia, LocalInertiaOrientation3D localInertiaOrientation, Orientation3D orientation)
 Calculate the world-space moment of inertia tensor of an object given its principal moments of inertia, the local orientation of the inertia frame, and the world-space orientation of the object.
InverseMomentOfInertiaTensor2D calculateInverseMomentOfInertiaTensor (InversePrincipalMomentsOfInertia2D inversePrincipalMomentsOfInertia, LocalInertiaOrientation2D localInertiaOrientation, Orientation2D orientation)
 Calculate the world-space inverse moment of inertia tensor of an object given its inverse principal moments of inertia, the local orientation of the inertia frame, and the world-space orientation of the object.
InverseMomentOfInertiaTensor3D calculateInverseMomentOfInertiaTensor (InversePrincipalMomentsOfInertia3D inversePrincipalMomentsOfInertia, LocalInertiaOrientation3D localInertiaOrientation, Orientation3D orientation)
 Calculate the world-space inverse moment of inertia tensor of an object given its inverse principal moments of inertia, the local orientation of the inertia frame, and the world-space orientation of the object.
template<size_t N>
Mass calculateCombinedEffectiveMassAlongAxis (InverseMass inverseMassA, InverseMass inverseMassB, const InverseMomentOfInertiaTensor< N > &inverseMomentOfInertiaTensorA, const InverseMomentOfInertiaTensor< N > &inverseMomentOfInertiaTensorB, Length< N > offsetA, Length< N > offsetB, Direction< N > axis)
 Calculate the combined effective mass of two points on two different objects along a given axis.
template<size_t N>
Quantity< N, Mass::Unit > calculateCombinedEffectiveMassesAlongAxes (InverseMass inverseMassA, InverseMass inverseMassB, const InverseMomentOfInertiaTensor< N > &inverseMomentOfInertiaTensorA, const InverseMomentOfInertiaTensor< N > &inverseMomentOfInertiaTensorB, Length< N > offsetA, Length< N > offsetB, OrthonormalBasis< N > axes)
 Calculate the combined effective mass of two points on two different objects along each axis of a given orthonormal basis.
MomentOfInertia2D calculateCombinedEffectiveMomentOfInertiaAroundAxis (const InverseMomentOfInertiaTensor3D &inverseMomentOfInertiaTensorA, const InverseMomentOfInertiaTensor3D &inverseMomentOfInertiaTensorB, Direction3D axis)
 Calculate the combined effective moment of inertia of two objects around a given axis.
template<size_t N>
MomentOfInertiaTensor< N > calculateCombinedEffectiveMomentOfInertiaTensor (const InverseMomentOfInertiaTensor< N > &inverseMomentOfInertiaTensorA, const InverseMomentOfInertiaTensor< N > &inverseMomentOfInertiaTensorB)
 Calculate the combined effective moment of inertia tensor of two objects.
template<size_t N>
LinearVelocity< N > calculatePointVelocity (LinearVelocity< N > linearVelocity, AngularVelocity< N > angularVelocity, Length< N > offset)
 Calculate the linear velocity of a point on an object with linear and angular velocity.
template<size_t N>
void applyImpulse (LinearVelocity< N > &linearVelocity, AngularVelocity< N > &angularVelocity, InverseMass inverseMass, const InverseMomentOfInertiaTensor< N > &inverseMomentOfInertiaTensor, LinearImpulse< N > impulse, Length< N > offset)
 Apply a world-space impulse to an object's velocity.
template<size_t N>
void applyCorrectionImpulse (ObjectActivity &activity, LinearVelocity< N > &linearVelocity, AngularVelocity< N > &angularVelocity, InverseMass inverseMass, const InverseMomentOfInertiaTensor< N > &inverseMomentOfInertiaTensor, LinearImpulse< N > impulse, Length< N > offset)
 Apply a world-space impulse to an object's velocity, making it active and marking it as corrected, unless the object is not correctable.
template<size_t N>
void applyLinearImpulse (LinearVelocity< N > &linearVelocity, InverseMass inverseMass, LinearImpulse< N > linearImpulse)
 Apply a world-space linear impulse to an object's velocity at its center of mass.
template<size_t N>
void applyLinearCorrectionImpulse (ObjectActivity &activity, LinearVelocity< N > &linearVelocity, InverseMass inverseMass, LinearImpulse< N > linearImpulse)
 Apply a world-space linear impulse to an object's velocity at its center of mass, making it active and marking it as corrected, unless the object is not correctable.
template<size_t N>
void applyAngularImpulse (AngularVelocity< N > &angularVelocity, const InverseMomentOfInertiaTensor< N > &inverseMomentOfInertiaTensor, AngularImpulse< N > angularImpulse)
 Apply a world-space angular impulse to an object's velocity at its center of mass.
template<size_t N>
void applyAngularCorrectionImpulse (ObjectActivity &activity, AngularVelocity< N > &angularVelocity, const InverseMomentOfInertiaTensor< N > &inverseMomentOfInertiaTensor, AngularImpulse< N > angularImpulse)
 Apply a world-space angular impulse to an object's velocity at its center of mass, making it active and marking it as corrected, unless the object is not correctable.
template<unit UnitT1, unit UnitT2>
consteval bool operator== (UnitT1 a, UnitT2 b)
 Compare two physical units for equality.
template<unit UnitT>
requires (!UnitT::MagnitudeType::IS_ABSOLUTE)
consteval auto operator+ (const UnitT &a)
 Get the unit resulting from taking the additive identity of a quantity of a unit.
template<unit UnitT>
requires (!UnitT::MagnitudeType::IS_ABSOLUTE)
consteval auto operator- (const UnitT &a)
 Get the unit resulting from taking the additive inverse of a quantity of a unit.
template<unit UnitT>
requires (!UnitT::MagnitudeType::IS_ABSOLUTE)
consteval auto operator+ (const UnitT &a, const UnitT &b)
 Get the unit resulting from adding two quantities of the same unit.
template<unit UnitT>
requires (!UnitT::MagnitudeType::IS_ABSOLUTE)
consteval auto operator- (const UnitT &a, const UnitT &b)
 Get the unit resulting from subtracting two quantities of the same unit.
template<unit UnitT1, unit UnitlessT2>
requires (UnitlessT2::DIMENSION == DIMENSIONLESS && UnitlessT2::MagnitudeType::VALUE == 1.0l && !UnitlessT2::MagnitudeType::IS_ABSOLUTE)
consteval auto operator* (const UnitT1 &a, const UnitlessT2 &b)
 Get the unit resulting from multiplying a unit by a dimensionless unit with a magnitude of 1.
template<unit UnitlessT1, unit UnitT2>
requires (UnitlessT1::DIMENSION == DIMENSIONLESS && UnitlessT1::MagnitudeType::VALUE == 1.0l && !UnitlessT1::MagnitudeType::IS_ABSOLUTE)
consteval auto operator* (const UnitlessT1 &a, const UnitT2 &b)
 Get the unit resulting from multiplying a dimensionless unit with a magnitude of 1 with another unit.
template<unit UnitT1, unit UnitlessT2>
requires (UnitlessT2::DIMENSION == DIMENSIONLESS && UnitlessT2::MagnitudeType::VALUE == 1.0l && !UnitlessT2::MagnitudeType::IS_ABSOLUTE)
consteval auto operator/ (const UnitT1 &a, const UnitlessT2 &b)
 Get the unit resulting from dividing a unit by a dimensionless unit with a magnitude of 1.
template<long double Multiple, unit UnitT>
consteval auto multipleOf (UnitT a)
 Get the canonical unit corresponding to a given unit with its magnitude scaled by a given multiplier.
template<unit UnitT>
consteval auto relative (UnitT a)
 Get the canonical unit corresponding to a given unit with its magnitude made relative.
template<unit UnitT>
consteval auto absolute (UnitT a)
 Get the canonical unit corresponding to a given unit with its magnitude made absolute.
template<unit UnitT>
consteval auto sqrt (UnitT a)
 Get the canonical unit resulting from taking the square root of a quantity of a given unit.
template<unit UnitT>
consteval auto per (UnitT a)
 Get the canonical unit resulting from taking the multiplicative inverse of a quantity of a given unit.
template<unit UnitT>
consteval auto square (UnitT a)
 Get the canonical unit resulting from squaring a quantity of a given unit.
template<unit UnitT>
consteval auto cubic (UnitT a)
 Get the canonical unit resulting from taking the cube of a quantity of a given unit.
template<unit UnitT>
consteval auto kilo (UnitT a)
 Get the canonical unit corresponding to a given unit with its magnitude scaled by 1000.
template<unit UnitT>
consteval auto deci (UnitT a)
 Get the canonical unit corresponding to a given unit with its magnitude scaled by 1/10.
template<unit UnitT>
consteval auto centi (UnitT a)
 Get the canonical unit corresponding to a given unit with its magnitude scaled by 1/100.
template<unit UnitT>
consteval auto milli (UnitT a)
 Get the canonical unit corresponding to a given unit with its magnitude scaled by 1/1000.
template<size_t N, typename UnitT, unit OtherUnitT>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL operator* (Quantity< N, UnitT > value, OtherUnitT)
template<unit OtherUnitT>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL operator* (detail::quantity_convertible auto value, OtherUnitT unit)
template<unit OtherUnitT, size_t N, typename UnitT>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL operator* (OtherUnitT, Quantity< N, UnitT > value)
template<unit OtherUnitT>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL operator* (OtherUnitT unit, detail::quantity_convertible auto value)
template<size_t N, typename UnitT, unit OtherUnitT>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL operator/ (Quantity< N, UnitT > value, OtherUnitT)
template<unit OtherUnitT>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL operator/ (detail::quantity_convertible auto value, OtherUnitT unit)
template<unit OtherUnitT, size_t N, typename UnitT>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL operator/ (OtherUnitT, Quantity< N, UnitT > value)
template<unit OtherUnitT>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL operator/ (OtherUnitT unit, detail::quantity_convertible auto value)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL operator+ (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL operator- (A a)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL operator+ (A a, B b)
template<size_t N, typename UnitT>
GREM_ALWAYS_INLINE constexpr Quantity< N, UnitT > &GREM_VECTORCALL operator+= (Quantity< N, UnitT > &a, detail::quantity_convertible auto b)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL operator- (A a, B b)
template<size_t N, typename UnitT>
GREM_ALWAYS_INLINE constexpr Quantity< N, UnitT > &GREM_VECTORCALL operator-= (Quantity< N, UnitT > &a, detail::quantity_convertible auto b)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL operator* (A a, B b)
template<size_t N, typename UnitT>
GREM_ALWAYS_INLINE constexpr Quantity< N, UnitT > &GREM_VECTORCALL operator*= (Quantity< N, UnitT > &a, detail::quantity_convertible auto b)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL operator/ (A a, B b)
template<size_t N, typename UnitT>
GREM_ALWAYS_INLINE constexpr Quantity< N, UnitT > &GREM_VECTORCALL operator/= (Quantity< N, UnitT > &a, detail::quantity_convertible auto b)
template<size_t N1, typename UnitT1, size_t N2, typename UnitT2>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL min (Quantity< N1, UnitT1 > a, Quantity< N2, UnitT2 > b)
template<size_t N1, typename UnitT1, size_t N2, typename UnitT2>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL max (Quantity< N1, UnitT1 > a, Quantity< N2, UnitT2 > b)
template<size_t N1, typename UnitT1, size_t N2, typename UnitT2, size_t N3, typename UnitT3>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL clamp (Quantity< N1, UnitT1 > a, Quantity< N2, UnitT2 > b, Quantity< N3, UnitT3 > c)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL sum (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL product (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL minComponent (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL maxComponent (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE auto GREM_VECTORCALL isfinite (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE auto GREM_VECTORCALL isinf (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE auto GREM_VECTORCALL isnan (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE auto GREM_VECTORCALL signbit (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL sign (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE auto GREM_VECTORCALL exp (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE auto GREM_VECTORCALL exp2 (A a)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE auto GREM_VECTORCALL pow (A a, B b)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE auto GREM_VECTORCALL fmod (A a, B b)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE auto GREM_VECTORCALL wrap (A a, B b)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE auto GREM_VECTORCALL abs (A a)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL dot (A a, B b)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL cross (A a, B b)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL sqrt (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL inversesqrt (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL length2 (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL length (A a)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL distance (A a, B b)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL distance2 (A a, B b)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL getAngle (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL tryGetAngle (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL cos (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL sin (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL tan (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL acos (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL asin (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL atan (A a)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL atan2 (A a, B b)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL tryDivide (A a, B b)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL reflect (A a, B normal)
template<detail::quantity_ternary_operand_a A, detail::quantity_ternary_operand_b< A > B, detail::quantity_ternary_operand_c< A, B > C>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL lerp (A a, B b, C alpha)
template<detail::quantity_ternary_operand_a A, detail::quantity_ternary_operand_b< A > B, detail::quantity_ternary_operand_c< A, B > C>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL unlerp (A value, B minValue, C maxValue)
template<detail::quantity_ternary_operand_a A, detail::quantity_ternary_operand_b< A > B, detail::quantity_ternary_operand_c< A, B > C>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL mix (A a, B b, C alpha)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL step (A edge, B value)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL select (auto condition, A ifTrue, B ifFalse)
template<detail::quantity_ternary_operand_a A, detail::quantity_ternary_operand_b< A > B, detail::quantity_ternary_operand_c< A, B > C>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL moveTowards (A value, B targetValue, C amount)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B, typename Frequency, typename Duration>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL expDecay (A value, B targetValue, Frequency decayRate, Duration deltaTime)
template<detail::quantity_unary_operand A, typename Frequency, typename Duration>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL expDecay (A value, Frequency decayRate, Duration deltaTime)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL midpoint (A a, B b)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL round (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL floor (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL ceil (A a)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL equal (A a, B b)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL equal (A a, Zero)
template<detail::quantity_unary_operand B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL equal (Zero, B b)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL notEqual (A a, B b)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL notEqual (A a, Zero)
template<detail::quantity_unary_operand B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL notEqual (Zero, B b)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL lessThan (A a, B b)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL lessThan (A a, Zero)
template<detail::quantity_unary_operand B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL lessThan (Zero, B b)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL lessThanEqual (A a, B b)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL lessThanEqual (A a, Zero)
template<detail::quantity_unary_operand B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL lessThanEqual (Zero, B b)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL greaterThan (A a, B b)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL greaterThan (A a, Zero)
template<detail::quantity_unary_operand B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL greaterThan (Zero, B b)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL greaterThanEqual (A a, B b)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL greaterThanEqual (A a, Zero)
template<detail::quantity_unary_operand B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL greaterThanEqual (Zero, B b)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL clampLength (A value, B maxLength)
template<size_t N, typename UnitT>
GREM_ALWAYS_INLINE constexpr auto inverse (Quantity< N, UnitT > a)
template<size_t N, typename UnitT>
GREM_ALWAYS_INLINE constexpr auto inverse (const TensorQuantity< N, UnitT > &a)
template<size_t N, typename UnitT>
GREM_ALWAYS_INLINE constexpr auto transpose (const TensorQuantity< N, UnitT > &a)
template<size_t N, typename UnitT>
GREM_ALWAYS_INLINE constexpr auto inverseTranspose (const TensorQuantity< N, UnitT > &a)
template<size_t N, typename UnitT1, typename UnitT2>
GREM_ALWAYS_INLINE auto operator+ (const TensorQuantity< N, UnitT1 > &a, const TensorQuantity< N, UnitT2 > &b)
template<size_t N, typename UnitT1, typename UnitT2>
GREM_ALWAYS_INLINE auto operator- (const TensorQuantity< N, UnitT1 > &a, const TensorQuantity< N, UnitT2 > &b)
template<size_t N, typename UnitT1, typename UnitT2>
GREM_ALWAYS_INLINE auto operator* (const TensorQuantity< N, UnitT1 > &a, const TensorQuantity< N, UnitT2 > &b)
template<size_t N1, typename UnitT1, detail::quantity_convertible B>
GREM_ALWAYS_INLINE auto operator* (const TensorQuantity< N1, UnitT1 > &a, B b)
template<size_t N2, typename UnitT2, detail::quantity_convertible A>
GREM_ALWAYS_INLINE auto operator* (A a, const TensorQuantity< N2, UnitT2 > &b)
template<size_t N, typename UnitT1, typename UnitT2>
GREM_ALWAYS_INLINE auto dot (const TensorQuantity< N, UnitT1 > &a, const TensorQuantity< N, UnitT2 > &b)
template<detail::quantity_convertible A, size_t N2, typename UnitT2>
GREM_ALWAYS_INLINE auto cross (A a, const TensorQuantity< N2, UnitT2 > &b)
template<size_t N, typename UnitT>
decltype(auto) getNormalComponent (Quantity< N, UnitT > &v)
template<size_t N, typename UnitT>
decltype(auto) getNormalComponent (const Quantity< N, UnitT > &v)
template<size_t N, typename UnitT>
auto getTangentialComponent (const Quantity< N, UnitT > &v)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL flipSignIf (A a, bool b)
template<size_t N>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL flipSignIf (Direction< N > a, bool b)
template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE auto GREM_VECTORCALL copysign (A a, B b)
template<size_t N, detail::quantity_binary_operand_b< Direction< N > > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL copysign (Direction< N > a, B b)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL normalize (A a)
template<size_t N>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL normalize (Direction< N > a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL tryNormalize (A a)
template<size_t N>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL tryNormalize (Direction< N > a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto rotate90DegreesCounterclockwise (A a)
GREM_ALWAYS_INLINE constexpr auto rotate90DegreesCounterclockwise (Direction2D a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto rotate90DegreesClockwise (A a)
GREM_ALWAYS_INLINE constexpr auto rotate90DegreesClockwise (Direction2D a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto flipX (A a)
template<size_t N>
GREM_ALWAYS_INLINE constexpr auto flipX (Direction< N > a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto flipY (A a)
template<size_t N>
requires (N >= 2)
GREM_ALWAYS_INLINE constexpr auto flipY (Direction< N > a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto flipZ (A a)
template<size_t N>
requires (N >= 3)
GREM_ALWAYS_INLINE constexpr auto flipZ (Direction< N > a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto decomposeMagnitudeDirection (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto tryDecomposeMagnitudeDirection (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto decomposeMagnitudeAngle (A a)
template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto tryDecomposeMagnitudeAngle (A a)
template<size_t N>
GREM_ALWAYS_INLINE constexpr auto transpose (const OrthonormalBasis< N > &a)
template<size_t N>
GREM_ALWAYS_INLINE constexpr auto inverse (const OrthonormalBasis< N > &a)
template<size_t N>
GREM_ALWAYS_INLINE constexpr auto inverseTranspose (const OrthonormalBasis< N > &a)
GREM_ALWAYS_INLINE bool GREM_VECTORCALL isfinite (Orientation2D a)
GREM_ALWAYS_INLINE bvec4 GREM_VECTORCALL isfinite (Orientation3D a)
GREM_ALWAYS_INLINE bool GREM_VECTORCALL isinf (Orientation2D a)
GREM_ALWAYS_INLINE bvec4 GREM_VECTORCALL isinf (Orientation3D a)
GREM_ALWAYS_INLINE bool GREM_VECTORCALL isnan (Orientation2D a)
GREM_ALWAYS_INLINE bvec4 GREM_VECTORCALL isnan (Orientation3D a)
GREM_ALWAYS_INLINE Orientation2D GREM_VECTORCALL inverse (Orientation2D a)
GREM_ALWAYS_INLINE Orientation3D GREM_VECTORCALL inverse (Orientation3D a)
GREM_ALWAYS_INLINE Orientation2D GREM_VECTORCALL operator+ (Orientation2D a, Rotation2D b)
GREM_ALWAYS_INLINE Orientation2D GREM_VECTORCALL operator+ (Orientation2D a, Scale1D b)
GREM_ALWAYS_INLINE Orientation3D GREM_VECTORCALL operator+ (Orientation3D a, Rotation3D b)
GREM_ALWAYS_INLINE Orientation3D GREM_VECTORCALL operator+ (Orientation3D a, Scale3D b)
template<size_t N>
GREM_ALWAYS_INLINE Orientation< N > & operator+= (Orientation< N > &a, Rotation< N > b)
GREM_ALWAYS_INLINE Rotation2D GREM_VECTORCALL operator- (Orientation2D a, Orientation2D b)
GREM_ALWAYS_INLINE Rotation3D GREM_VECTORCALL operator- (Orientation3D a, Orientation3D b)
GREM_ALWAYS_INLINE Orientation2D GREM_VECTORCALL operator- (Orientation2D a, Rotation2D b)
GREM_ALWAYS_INLINE Orientation3D GREM_VECTORCALL operator- (Orientation3D a, Rotation3D b)
template<size_t N>
GREM_ALWAYS_INLINE Orientation< N > & operator-= (Orientation< N > &a, Rotation< N > b)
GREM_ALWAYS_INLINE Orientation2D GREM_VECTORCALL operator* (Orientation2D a, Orientation2D b)
GREM_ALWAYS_INLINE Orientation3D GREM_VECTORCALL operator* (Orientation3D a, Orientation3D b)
GREM_ALWAYS_INLINE Orientation3D GREM_VECTORCALL slerp (Orientation3D a, Orientation3D b, Coefficient alpha)
GREM_ALWAYS_INLINE Orientation3D GREM_VECTORCALL slerp (Orientation3D a, Orientation3D b, Scalar alpha)
GREM_ALWAYS_INLINE Orientation2D GREM_VECTORCALL mix (Orientation2D a, Orientation2D b, Coefficient alpha)
GREM_ALWAYS_INLINE Orientation2D GREM_VECTORCALL mix (Orientation2D a, Orientation2D b, Scalar alpha)
GREM_ALWAYS_INLINE Orientation3D GREM_VECTORCALL mix (Orientation3D a, Orientation3D b, Coefficient alpha)
GREM_ALWAYS_INLINE Orientation3D GREM_VECTORCALL mix (Orientation3D a, Orientation3D b, Scalar alpha)
template<size_t N, typename UnitT>
GREM_ALWAYS_INLINE Basis< N > scale (Quantity< N, UnitT > s)
GREM_ALWAYS_INLINE OrthonormalBasis2D rotate (RollRotation r)
GREM_ALWAYS_INLINE OrthonormalBasis3D rotate (PitchYawRotations r)
GREM_ALWAYS_INLINE OrthonormalBasis3D rotate (PitchYawRollRotations r)
template<size_t N>
GREM_ALWAYS_INLINE OrthonormalBasis< N > rotate (Orientation< N > r)
GREM_ALWAYS_INLINE OrthonormalBasis2D rotate (Roll angle)
GREM_ALWAYS_INLINE OrthonormalBasis3D rotate (PitchYaw angles)
GREM_ALWAYS_INLINE OrthonormalBasis3D rotate (PitchYawRoll angles)
template<size_t N, typename UnitT>
GREM_ALWAYS_INLINE TensorQuantity< N, UnitT > rotateScale (Orientation< N > r, Quantity< N, UnitT > s)
GREM_ALWAYS_INLINE AbsoluteAngle getAngle (Orientation2D orientation)
GREM_ALWAYS_INLINE AbsoluteAngle getAngle (Orientation3D orientation)
GREM_ALWAYS_INLINE Direction3D getAxis (Orientation3D orientation)
GREM_ALWAYS_INLINE AbsoluteAngle getPitch (Orientation3D orientation)
GREM_ALWAYS_INLINE AbsoluteAngle getYaw (Orientation3D orientation)
GREM_ALWAYS_INLINE AbsoluteAngle getRoll (Orientation2D orientation)
GREM_ALWAYS_INLINE AbsoluteAngle getRoll (Orientation3D orientation)
GREM_ALWAYS_INLINE PitchYawRoll getPitchYawRoll (Orientation3D orientation)
GREM_ALWAYS_INLINE Direction2D convertAnglesToForwardDirection (Roll angles)
GREM_ALWAYS_INLINE Direction3D convertAnglesToForwardDirection (PitchYaw angles)
GREM_ALWAYS_INLINE Direction3D convertAnglesToForwardDirection (PitchYawRoll angles)
GREM_ALWAYS_INLINE Roll convertForwardDirectionToAngles (Direction2D forward)
GREM_ALWAYS_INLINE PitchYaw convertForwardDirectionToAngles (Direction3D forward)
Angle getAngleDifference (AbsoluteAngle a, AbsoluteAngle b)
 Get the smallest signed angle between two absolute angles.
template<typename UnitT>
requires (!UnitT::MagnitudeType::IS_ABSOLUTE)
Angle getAngleDifferenceAroundAxis (Direction3D axis, Quantity< 3, UnitT > a, Quantity< 3, UnitT > b)
 Get the smallest signed angle around an axis between two relative vectors.
template<size_t N>
GREM_ALWAYS_INLINE LocalTransformation< N > GREM_VECTORCALL translateRotateScale (Length< N > localOffset, Orientation< N > localOrientation, Scale< N > localScale)
GREM_ALWAYS_INLINE LocalTransformation3D GREM_VECTORCALL translateRotateScale (Length3D localOffset, qua< float > localOrientation, Scale3D localScale)
GREM_ALWAYS_INLINE LocalTransformation3D GREM_VECTORCALL translateRotateScale (Length3D localOffset, qua< double > localOrientation, Scale3D localScale)
template<size_t N>
GREM_ALWAYS_INLINE LocalTransformation< N > GREM_VECTORCALL translateRotate (Length< N > localOffset, Orientation< N > localOrientation)
GREM_ALWAYS_INLINE LocalTransformation3D GREM_VECTORCALL translateRotate (Length3D localOffset, qua< float > localOrientation)
GREM_ALWAYS_INLINE LocalTransformation3D GREM_VECTORCALL translateRotate (Length3D localOffset, qua< double > localOrientation)
template<size_t N>
GREM_ALWAYS_INLINE LocalTransformation< N > GREM_VECTORCALL translateScale (Length< N > localOffset, Scale< N > localScale)
template<size_t N>
GREM_ALWAYS_INLINE LocalTransformation< N > GREM_VECTORCALL translate (Length< N > localOffset)
template<size_t N>
GREM_ALWAYS_INLINE Transformation< N > GREM_VECTORCALL translateRotateScale (Position< N > position, Orientation< N > orientation, Scale< N > scale)
GREM_ALWAYS_INLINE Transformation3D GREM_VECTORCALL translateRotateScale (Position3D position, qua< float > orientation, Scale3D scale)
GREM_ALWAYS_INLINE Transformation3D GREM_VECTORCALL translateRotateScale (Position3D position, qua< double > orientation, Scale3D scale)
template<size_t N>
GREM_ALWAYS_INLINE Transformation< N > GREM_VECTORCALL translateRotate (Position< N > position, Orientation< N > orientation)
GREM_ALWAYS_INLINE Transformation3D GREM_VECTORCALL translateRotate (Position3D position, qua< float > orientation)
GREM_ALWAYS_INLINE Transformation3D GREM_VECTORCALL translateRotate (Position3D position, qua< double > orientation)
template<size_t N>
GREM_ALWAYS_INLINE Transformation< N > GREM_VECTORCALL translateScale (Position< N > position, Scale< N > scale)
template<size_t N>
GREM_ALWAYS_INLINE Transformation< N > GREM_VECTORCALL translate (Position< N > position)
template<size_t N>
GREM_ALWAYS_INLINE InverseLocalTransformation< N > GREM_VECTORCALL inverseTranslateRotateScale (Length< N > localOffset, Orientation< N > localOrientation, Scale< N > localScale)
GREM_ALWAYS_INLINE InverseLocalTransformation< 3 > GREM_VECTORCALL inverseTranslateRotateScale (Length3D localOffset, qua< float > localOrientation, Scale3D localScale)
GREM_ALWAYS_INLINE InverseLocalTransformation< 3 > GREM_VECTORCALL inverseTranslateRotateScale (Length3D localOffset, qua< double > localOrientation, Scale3D localScale)
template<size_t N>
GREM_ALWAYS_INLINE InverseLocalTransformation< N > GREM_VECTORCALL inverseTranslateRotate (Length< N > localOffset, Orientation< N > localOrientation)
GREM_ALWAYS_INLINE InverseLocalTransformation3D GREM_VECTORCALL inverseTranslateRotate (Length3D localOffset, qua< float > localOrientation)
GREM_ALWAYS_INLINE InverseLocalTransformation3D GREM_VECTORCALL inverseTranslateRotate (Length3D localOffset, qua< double > localOrientation)
template<size_t N>
GREM_ALWAYS_INLINE InverseLocalTransformation< N > GREM_VECTORCALL inverseTranslateScale (Length< N > localOffset, Scale< N > localScale)
template<size_t N>
GREM_ALWAYS_INLINE InverseLocalTransformation< N > GREM_VECTORCALL inverseTranslate (Length< N > localOffset)
template<size_t N>
GREM_ALWAYS_INLINE LocalTransformation< N > GREM_VECTORCALL inverse (InverseLocalTransformation< N > a)
template<size_t N>
GREM_ALWAYS_INLINE InverseLocalTransformation< N > GREM_VECTORCALL inverse (LocalTransformation< N > a)
template<size_t N>
GREM_ALWAYS_INLINE InverseTransformation< N > GREM_VECTORCALL inverseTranslateRotateScale (Position< N > position, Orientation< N > orientation, Scale< N > scale)
GREM_ALWAYS_INLINE InverseTransformation< 3 > GREM_VECTORCALL inverseTranslateRotateScale (Position3D position, qua< float > orientation, Scale3D scale)
GREM_ALWAYS_INLINE InverseTransformation< 3 > GREM_VECTORCALL inverseTranslateRotateScale (Position3D position, qua< double > orientation, Scale3D scale)
template<size_t N>
GREM_ALWAYS_INLINE InverseTransformation< N > GREM_VECTORCALL inverseTranslateRotate (Position< N > position, Orientation< N > orientation)
GREM_ALWAYS_INLINE InverseTransformation< 3 > GREM_VECTORCALL inverseTranslateRotate (Position3D position, qua< float > orientation)
GREM_ALWAYS_INLINE InverseTransformation< 3 > GREM_VECTORCALL inverseTranslateRotate (Position3D position, qua< double > orientation)
template<size_t N>
GREM_ALWAYS_INLINE InverseTransformation< N > GREM_VECTORCALL inverseTranslateScale (Position< N > position, Scale< N > scale)
template<size_t N>
GREM_ALWAYS_INLINE InverseTransformation< N > GREM_VECTORCALL inverseTranslate (Position< N > position)
template<size_t N>
GREM_ALWAYS_INLINE Transformation< N > GREM_VECTORCALL inverse (InverseTransformation< N > a)
template<size_t N>
GREM_ALWAYS_INLINE InverseTransformation< N > GREM_VECTORCALL inverse (Transformation< N > a)
GREM_ALWAYS_INLINE LocalTransformation2D GREM_VECTORCALL operator* (LocalTransformation2D a, LocalTransformation2D b)
GREM_ALWAYS_INLINE LocalTransformation3D GREM_VECTORCALL operator* (LocalTransformation3D a, LocalTransformation3D b)
GREM_ALWAYS_INLINE Transformation2D GREM_VECTORCALL operator* (Transformation2D a, LocalTransformation2D b)
GREM_ALWAYS_INLINE Transformation3D GREM_VECTORCALL operator* (Transformation3D a, LocalTransformation3D b)
constexpr CollisionLayers operator~ (CollisionLayer a) noexcept
 Get the complement of a collision layer.
constexpr CollisionLayers operator| (CollisionLayer a, CollisionLayer b) noexcept
 Get the union of two collision layers.
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr Ray< N > operator* (const grem::Ray< N, T > &ray, typename Ray< N >::Unit)
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr Ray< N > operator* (typename Ray< N >::Unit, const grem::Ray< N, T > &ray)
GREM_ALWAYS_INLINE constexpr RayMiss operator* (const grem::RayMiss &miss, typename RayMiss::Unit)
GREM_ALWAYS_INLINE constexpr RayMiss operator* (typename RayMiss::Unit, const grem::RayMiss &miss)
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr RayHit< N > operator* (const grem::RayHit< N, T > &hit, typename RayHit< N >::Unit)
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr RayHit< N > operator* (typename RayHit< N >::Unit, const grem::RayHit< N, T > &hit)
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr RayHitInterior< N > operator* (const grem::RayHitInterior< N, T > &hit, typename RayHitInterior< N >::Unit)
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr RayHitInterior< N > operator* (typename RayHitInterior< N >::Unit, const grem::RayHitInterior< N, T > &hit)
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr RaycastResult< N > operator* (const grem::RaycastResult< N, T > &raycastResult, typename RaycastResult< N >::Unit)
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr RaycastResult< N > operator* (typename RaycastResult< N >::Unit, const grem::RaycastResult< N, T > &raycastResult)
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr LineSegment< N > operator* (const grem::LineSegment< N, T > &line, typename LineSegment< N >::Unit)
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr LineSegment< N > operator* (typename LineSegment< N >::Unit, const grem::LineSegment< N, T > &line)
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr Box< N > operator* (const grem::Box< N, T > &box, typename Box< N >::Unit)
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr Box< N > operator* (typename Box< N >::Unit, const grem::Box< N, T > &box)
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr Sphere< N > operator* (const grem::Sphere< N, T > &sphere, typename Sphere< N >::Unit)
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr Sphere< N > operator* (typename Sphere< N >::Unit, const grem::Sphere< N, T > &sphere)
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr Triangle< N > operator* (const grem::Triangle< N, T > &triangle, typename Triangle< N >::Unit)
template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr Triangle< N > operator* (typename Triangle< N >::Unit, const grem::Triangle< N, T > &triangle)
template<size_t N>
Box< N > getTransformedBoundingBox (const Transformation< N > &transformation, const Box< N > &box)
 Get the axis-aligned bounding box of an axis-aligned box with a transformation applied to it.
void forEachVertexIndexInFace (const convex_polytope_shape_2d auto &shape, ConvexPolytopeFaceIndex faceIndex, auto callback)
 Execute a function for each vertex of a face of a convex polytope shape.
void forEachVertexIndexInFace (const convex_polytope_shape_3d auto &shape, ConvexPolytopeFaceIndex faceIndex, auto callback)
 Execute a function for each vertex of a face of a convex polytope shape.
void forEachFaceIndexAroundVertex (const convex_polytope_shape_2d auto &shape, ConvexPolytopeVertexIndex vertexIndex, auto callback)
 Execute a function for each face that is adjacent to a vertex of a convex polytope shape.
void forEachFaceIndexAroundVertex (const convex_polytope_shape_3d auto &shape, ConvexPolytopeVertexIndex vertexIndex, auto callback)
 Execute a function for each face that is adjacent to a vertex of a convex polytope shape.
void forEachNeighboringVertexIndex (const convex_polytope_shape_2d auto &shape, ConvexPolytopeVertexIndex vertexIndex, auto callback)
 Execute a function for each vertex that is directly connected to a specific vertex of a convex polytope shape.
void forEachNeighboringVertexIndex (const convex_polytope_shape_3d auto &shape, ConvexPolytopeVertexIndex vertexIndex, auto callback)
 Execute a function for each vertex that is directly connected to a specific vertex of a convex polytope shape.
template<typename Visitor, size_t N>
constexpr decltype(auto) visit (Visitor &&visitor, ShapeView< N > shape)
 Call a visitor functor with a reference to the currently active underlying shape of a ShapeView.
template<typename T, typename Low, typename High>
requires (requires(T v, Low l) { v < l; } && requires(T v, High h) { h < v; })
GREM_ALWAYS_INLINE constexpr decltype(auto) clamp (T &&value, Low &&minValue, High &&maxValue)
 Clamp a value to a specific interval.
template<typename A, typename B>
requires (requires(A x, B y) { x < y; })
GREM_ALWAYS_INLINE constexpr decltype(auto) max (A &&a, B &&b)
 Get the greater of two values, or the first value if they are equivalent.
template<typename A, typename B>
requires (requires(A x, B y) { x < y; })
GREM_ALWAYS_INLINE constexpr decltype(auto) min (A &&a, B &&b)
 Get the smaller of two values, or the first value if they are equivalent.
template<typename T>
GREM_ALWAYS_INLINE constexpr T select (bool condition, T ifTrue, T ifFalse)
 Choose between two values based on a condition.

Variables

constexpr Frequency DEFAULT_JOINT_LINEAR_LIMIT_STIFFNESS = Scalar{60} * HERTZ
 Default stiffness value for linear joint limits.
constexpr Coefficient DEFAULT_JOINT_LINEAR_LIMIT_DAMPING_RATIO = Scalar{2}
 Default damping value for linear joint limits.
constexpr Frequency DEFAULT_JOINT_ANGULAR_LIMIT_STIFFNESS = Scalar{60} * HERTZ
 Default stiffness value for angular joint limits.
constexpr Coefficient DEFAULT_JOINT_ANGULAR_LIMIT_DAMPING_RATIO = Scalar{2}
 Default damping value for angular joint limits.
constexpr Dimension< 0, 0, 0 > DIMENSIONLESS {}
 Identity dimension.
constexpr Dimension< 1, 0, 0 > MASS {}
 M.
constexpr Dimension< 0, 1, 0 > LENGTH {}
 L.
constexpr Dimension< 0, 0, 1 > TIME {}
 T.
constexpr Dimension ANGLE = DIMENSIONLESS
constexpr Dimension AREA = LENGTH * LENGTH
 L^2.
constexpr Dimension VOLUME = LENGTH * LENGTH * LENGTH
 L^3.
constexpr Dimension DENSITY = MASS / VOLUME
 M L^-3.
constexpr Dimension FREQUENCY = DIMENSIONLESS / TIME
 T^-1.
constexpr Dimension ABSEMENT = LENGTH * TIME
 L T.
constexpr Dimension WAVENUMBER = DIMENSIONLESS / LENGTH
 L^-1.
constexpr Dimension VELOCITY = LENGTH / TIME
 L T^-1.
constexpr Dimension ACCELERATION = VELOCITY / TIME
 L T^-2.
constexpr Dimension FORCE = MASS * ACCELERATION
 M L T^-2.
constexpr Dimension TORQUE = FORCE * LENGTH
 M L^2 T^-2.
constexpr Dimension IMPULSE = FORCE * TIME
 M L T^-1.
constexpr Dimension MOMENTUM = MASS * VELOCITY
 M L T^-1.
constexpr Dimension MOMENT_OF_INERTIA = MASS * LENGTH * LENGTH
 M L^2.
constexpr Dimension ANGULAR_ABSEMENT = ANGLE * TIME
 T.
constexpr Dimension ANGULAR_VELOCITY = ANGLE / TIME
 T^-1.
constexpr Dimension ANGULAR_ACCELERATION = ANGULAR_VELOCITY / TIME
 T^-2.
constexpr Dimension ANGULAR_IMPULSE = TORQUE * TIME
 M L^2 T^-1.
constexpr Dimension ANGULAR_MOMENTUM = MOMENT_OF_INERTIA * ANGULAR_VELOCITY
 M L^2 T^-1.
constexpr Dimension INTEGRATED_POSITIONAL_IMPULSE = IMPULSE * TIME
 M L.
constexpr Dimension INTEGRATED_POSITIONAL_MOMENTUM = MOMENTUM * TIME
 M L.
constexpr Dimension INTEGRATED_ROTATIONAL_IMPULSE = ANGULAR_IMPULSE * TIME
 M L^2.
constexpr Dimension INTEGRATED_ROTATIONAL_MOMENTUM = ANGULAR_MOMENTUM * TIME
 M L^2.
constexpr Dimension MASS_FLOW_RATE = MASS / TIME
 M T^-1.
constexpr Dimension VOLUMETRIC_FLOW_RATE = VOLUME / TIME
 L^3 T^-1.
constexpr Dimension WORK = FORCE * LENGTH
 M L^2 T^-2.
constexpr Dimension POWER = WORK / TIME
 M L^2 T^-3.
constexpr Dimension ENERGY = POWER * TIME
 M L^2 T^-2.
template<Dimension D>
constexpr SIUnit< D > SI_UNIT {}
 The canonical relative SI unit for a given dimension.
constexpr ComponentSwizzle< 0 > X {}
 Tag specifying the X component at index 0 of a vector.
constexpr ComponentSwizzle< 1 > Y {}
 Tag specifying the Y component at index 1 of a vector.
constexpr ComponentSwizzle< 2 > Z {}
 Tag specifying the Z component at index 2 of a vector.
template<typename UnitT>
constexpr Quantity< 1, UnitT > Quantity< 1, UnitT >::MIN {Limits<Scalar>::MIN}
template<typename UnitT>
constexpr Quantity< 1, UnitT > Quantity< 1, UnitT >::MAX {Limits<Scalar>::MAX}
template<typename UnitT>
constexpr Quantity< 1, UnitT > Quantity< 1, UnitT >::SMALLEST_NORMAL {Limits<Scalar>::SMALLEST_NORMAL}
template<typename UnitT>
constexpr Quantity< 1, UnitT > Quantity< 1, UnitT >::SMALLEST_SUBNORMAL {Limits<Scalar>::SMALLEST_SUBNORMAL}
template<typename UnitT>
constexpr Quantity< 1, UnitT > Quantity< 1, UnitT >::MACHINE_EPSILON {Limits<Scalar>::MACHINE_EPSILON}
template<typename UnitT>
constexpr Quantity< 1, UnitT > Quantity< 1, UnitT >::INF {Limits<Scalar>::INF}
template<typename UnitT>
constexpr Quantity< 1, UnitT > Quantity< 1, UnitT >::QUIET_NAN {Limits<Scalar>::QUIET_NAN}
template<typename UnitT>
constexpr Quantity< 2, UnitT > Quantity< 2, UnitT >::MIN {vec<2, Scalar>{Limits<Scalar>::MIN}}
template<typename UnitT>
constexpr Quantity< 2, UnitT > Quantity< 2, UnitT >::MAX {vec<2, Scalar>{Limits<Scalar>::MAX}}
template<typename UnitT>
constexpr Quantity< 2, UnitT > Quantity< 2, UnitT >::SMALLEST_NORMAL {vec<2, Scalar>{Limits<Scalar>::SMALLEST_NORMAL}}
template<typename UnitT>
constexpr Quantity< 2, UnitT > Quantity< 2, UnitT >::SMALLEST_SUBNORMAL {vec<2, Scalar>{Limits<Scalar>::SMALLEST_SUBNORMAL}}
template<typename UnitT>
constexpr Quantity< 2, UnitT > Quantity< 2, UnitT >::MACHINE_EPSILON {vec<2, Scalar>{Limits<Scalar>::MACHINE_EPSILON}}
template<typename UnitT>
constexpr Quantity< 2, UnitT > Quantity< 2, UnitT >::INF {vec<2, Scalar>{Limits<Scalar>::INF}}
template<typename UnitT>
constexpr Quantity< 2, UnitT > Quantity< 2, UnitT >::QUIET_NAN {vec<2, Scalar>{Limits<Scalar>::QUIET_NAN}}
template<typename UnitT>
constexpr Quantity< 3, UnitT > Quantity< 3, UnitT >::MIN {vec<3, Scalar>{Limits<Scalar>::MIN}}
template<typename UnitT>
constexpr Quantity< 3, UnitT > Quantity< 3, UnitT >::MAX {vec<3, Scalar>{Limits<Scalar>::MAX}}
template<typename UnitT>
constexpr Quantity< 3, UnitT > Quantity< 3, UnitT >::SMALLEST_NORMAL {vec<3, Scalar>{Limits<Scalar>::SMALLEST_NORMAL}}
template<typename UnitT>
constexpr Quantity< 3, UnitT > Quantity< 3, UnitT >::SMALLEST_SUBNORMAL {vec<3, Scalar>{Limits<Scalar>::SMALLEST_SUBNORMAL}}
template<typename UnitT>
constexpr Quantity< 3, UnitT > Quantity< 3, UnitT >::MACHINE_EPSILON {vec<3, Scalar>{Limits<Scalar>::MACHINE_EPSILON}}
template<typename UnitT>
constexpr Quantity< 3, UnitT > Quantity< 3, UnitT >::INF {vec<3, Scalar>{Limits<Scalar>::INF}}
template<typename UnitT>
constexpr Quantity< 3, UnitT > Quantity< 3, UnitT >::QUIET_NAN {vec<3, Scalar>{Limits<Scalar>::QUIET_NAN}}
constexpr Angle PI {numbers::pi_v<Scalar>}
 Pi constant.
template<size_t N>
constexpr OrthonormalBasis< N > BASIS
 Identity basis for the given number of dimensions.
template<>
constexpr OrthonormalBasis< 2 > BASIS< 2 >
template<>
constexpr OrthonormalBasis< 3 > BASIS< 3 >
constexpr OrthonormalBasis2D BASIS_2D = BASIS<2>
 Identity basis in 2-dimensional space.
constexpr OrthonormalBasis3D BASIS_3D = BASIS<3>
 Identity basis in 3-dimensional space.
template<size_t N>
constexpr Direction< N > X_AXIS
 The X axis in the space with the given number of dimensions.
template<>
constexpr Direction< 2 > X_AXIS< 2 > = Direction<2>::reinterpret(vec<2, Scalar>{Scalar{1}, Scalar{0}})
template<>
constexpr Direction< 3 > X_AXIS< 3 > = Direction<3>::reinterpret(vec<3, Scalar>{Scalar{1}, Scalar{0}, Scalar{0}})
constexpr Direction2D X_AXIS_2D = X_AXIS<2>
 The X axis in 2-dimensional space.
constexpr Direction3D X_AXIS_3D = X_AXIS<3>
 The X axis in 3-dimensional space.
template<size_t N>
constexpr Direction< N > Y_AXIS
 The Y axis in the space with the given number of dimensions.
template<>
constexpr Direction< 2 > Y_AXIS< 2 > = Direction<2>::reinterpret(vec<2, Scalar>{Scalar{0}, Scalar{1}})
template<>
constexpr Direction< 3 > Y_AXIS< 3 > = Direction<3>::reinterpret(vec<3, Scalar>{Scalar{0}, Scalar{1}, Scalar{0}})
constexpr Direction2D Y_AXIS_2D = Y_AXIS<2>
 The Y axis in 2-dimensional space.
constexpr Direction3D Y_AXIS_3D = Y_AXIS<3>
 The Y axis in 3-dimensional space.
template<size_t N>
constexpr Direction< N > Z_AXIS
 The Z axis in the space with the given number of dimensions.
template<>
constexpr Direction< 3 > Z_AXIS< 3 > = Direction<3>::reinterpret(vec<3, Scalar>{Scalar{0}, Scalar{0}, Scalar{1}})
constexpr Direction3D Z_AXIS_3D = Z_AXIS<3>
 The Z axis in 3-dimensional space.

Typedef Documentation

◆ Broadphase2D

Acceleration structure for spatial queries in a 2-dimensional simulation.

◆ Broadphase3D

Acceleration structure for spatial queries in a 3-dimensional simulation.

◆ CollisionEvent2D

Collision start event between two objects in a 2-dimensional Simulation.

◆ CollisionEvent3D

Collision start event between two objects in a 3-dimensional Simulation.

◆ CollisionEvents2D

List of collision start events between the objects in a 2-dimensional Simulation.

◆ CollisionEvents3D

List of collision start events between the objects in a 3-dimensional Simulation.

◆ SeparationEvent2D

Collision end event between two objects in a 2-dimensional Simulation.

◆ SeparationEvent3D

Collision end event between two objects in a 3-dimensional Simulation.

◆ SeparationEvents2D

List of collision end events between the objects in a 2-dimensional Simulation.

◆ SeparationEvents3D

List of collision end events between the objects in a 3-dimensional Simulation.

◆ ContactPoint2D

Contact point between two potentially colliding objects in a 2-dimensional Simulation.

◆ ContactPoint3D

Contact point between two potentially colliding objects in a 3-dimensional Simulation.

◆ ContactManifold2D

Set of points on the contact surface between two potentially colliding 2-dimensional objects.

◆ ContactManifold3D

Set of points on the contact surface between two potentially colliding 3-dimensional objects.

◆ CollisionAlgorithmResult2D

Result of a 2-dimensional collision algorithm.

◆ CollisionAlgorithmResult3D

Result of a 3-dimensional collision algorithm.

◆ CollisionAlgorithmOptions2D

Configuration options for a 2-dimensional collision algorithm.

◆ CollisionAlgorithmOptions3D

Configuration options for a 3-dimensional collision algorithm.

◆ CollisionAlgorithmImplementation2D

Base interface for a stateful collision algorithm that generates contact points between two potentially colliding 2-dimensional objects of specific shape types.

◆ CollisionAlgorithmImplementation3D

Base interface for a stateful collision algorithm that generates contact points between two potentially colliding 3-dimensional objects of specific shape types.

◆ CollisionAlgorithm2D

Generic box type for any collision algorithm implementation derived from CollisionAlgorithmImplementation2D.

◆ CollisionAlgorithm3D

Generic box type for any collision algorithm implementation derived from CollisionAlgorithmImplementation3D.

◆ Contact2D

Potential collision between two objects in a 2-dimensional Simulation, including a stateful collision algorithm for generating the actual contact points between them.

◆ Contact3D

Potential collision between two objects in a 3-dimensional Simulation, including a stateful collision algorithm for generating the actual contact points between them.

◆ Contacts2D

Set of contacts in a 2-dimensional Simulation.

◆ Contacts3D

Set of contacts in a 3-dimensional Simulation.

◆ ShapecastHit2D

Result of a shapecast hit in 2-dimensional space.

◆ ShapecastHit3D

Result of a shapecast hit in 3-dimensional space.

◆ ShapecastHitInterior2D

Result of an interior shapecast hit in 2-dimensional space.

◆ ShapecastHitInterior3D

Result of an interior shapecast hit in 3-dimensional space.

◆ ShapecastResult2D

Result of a shapecast in 2-dimensional space.

◆ ShapecastResult3D

Result of a shapecast in 3-dimensional space.

◆ DebugVisualization2D

Bundle of draw commands for drawing debugging information about a 2-dimensional Simulation.

◆ DebugVisualization3D

Bundle of draw commands for drawing debugging information about a 3-dimensional Simulation.

◆ EntityID

Opaque handle to a specific entity in a Simulation's EntityRegistry.

◆ JointAttachmentOffsets2D

Local offsets of the attachment frames of the objects connected by a joint in a 2-dimensional world.

◆ JointAttachmentOffsets3D

Local offsets of the attachment frames of the objects connected by a joint in a 3-dimensional world.

◆ JointAttachmentOrientations2D

Local orientations of the attachment frames of the objects connected by a joint in a 2-dimensional world.

◆ JointAttachmentOrientations3D

Local orientations of the attachment frames of the objects connected by a joint in a 3-dimensional world.

◆ JointLinearConstraint2D

Linear limits of a joint in a 2-dimensional world.

◆ JointLinearConstraint3D

Linear limits of a joint in a 3-dimensional world.

◆ JointLinearConstraintImpulses2D

Impulse applied by the linear limits of a joint in a 2-dimensional world.

◆ JointLinearConstraintImpulses3D

Impulse applied by the linear limits of a joint in a 3-dimensional world.

◆ JointDistanceConstraint2D

Distance limit of a joint in a 2-dimensional world.

◆ JointDistanceConstraint3D

Distance limit of a joint in a 3-dimensional world.

◆ JointDistanceConstraintImpulses2D

Impulse applied by the distance limit of a joint in a 2-dimensional world.

◆ JointDistanceConstraintImpulses3D

Impulse applied by the distance limit of a joint in a 3-dimensional world.

◆ JointAngularConstraint2D

Angular limits of a joint in a 2-dimensional world.

◆ JointAngularConstraint3D

Angular limits of a joint in a 3-dimensional world.

◆ JointAngularConstraintImpulses2D

Impulse applied by the angular limits of a joint in a 2-dimensional world.

◆ JointAngularConstraintImpulses3D

Impulse applied by the angular limits of a joint in a 3-dimensional world.

◆ JointFlags2D

Set of boolean properties of a joint in a 2-dimensional world.

◆ JointFlags3D

Set of boolean properties of a joint in a 3-dimensional world.

◆ GenericJointOptions2D

Configuration options for a generic joint in a 2-dimensional world.

◆ GenericJointOptions3D

Configuration options for a generic joint in a 3-dimensional world.

◆ WeldOptions2D

Configuration options for a fully constrained joint in a 2-dimensional world.

◆ WeldOptions3D

Configuration options for a fully constrained joint in a 3-dimensional world.

◆ HingeJointOptions2D

Configuration options for a revolute joint in a 2-dimensional world.

◆ HingeJointOptions3D

Configuration options for a revolute joint in a 3-dimensional world.

◆ BallJointOptions2D

Configuration options for a spherical joint in a 2-dimensional world.

◆ BallJointOptions3D

Configuration options for a spherical joint in a 3-dimensional world.

◆ PrismaticJointOptions2D

Configuration options for a prismatic joint in a 2-dimensional world.

◆ PrismaticJointOptions3D

Configuration options for a prismatic joint in a 3-dimensional world.

◆ CylinderJointOptions2D

Configuration options for a cylindrical joint in a 2-dimensional world.

◆ CylinderJointOptions3D

Configuration options for a cylindrical joint in a 3-dimensional world.

◆ CenterOfBuoyancy2D

World-space offset of the center of buoyancy of an object in a 2-dimensional world.

◆ CenterOfBuoyancy3D

World-space offset of the center of buoyancy of an object in a 3-dimensional world.

◆ ObjectContacts2D

Potential contacts of a 2-dimensional object.

◆ ObjectContacts3D

Potential contacts of a 3-dimensional object.

◆ ObjectBounds2D

Bounds of a 2-dimensional object.

◆ ObjectBounds3D

Bounds of a 3-dimensional object.

◆ ObjectOptions2D

Configuration options for an object in a 2-dimensional world.

◆ ObjectOptions3D

Configuration options for an object in a 3-dimensional world.

◆ canonical_unit_t

template<unit UnitT>
using grem::physics::canonical_unit_t = typename canonical_unit<UnitT>::type

Canonical unit type of a given unit.

Template Parameters
UnitTunit type to get the canonical unit type of.

◆ in_base_units_t

template<unit UnitT>
using grem::physics::in_base_units_t = typename in_base_units<UnitT>::type

Corresponding instantiation of the BaseUnit type template of a given unit type.

Template Parameters
UnitTunit type to get the base unit type of.

◆ BaseSum

template<typename UnitT1, typename... UnitTs>
using grem::physics::BaseSum = BaseUnit<(UnitT1::DIMENSION + ... + UnitTs::DIMENSION), (UnitT1::MAGNITUDE + ... + UnitTs::MAGNITUDE)>

The base unit type resulting from adding a set of quantities of the given units.

Template Parameters
UnitT1first unit type to add.
UnitTsother unit types to add.

◆ Sum

template<typename UnitT1, typename... UnitTs>
using grem::physics::Sum = canonical_unit_t<BaseSum<UnitT1, UnitTs...>>

The canonical unit type resulting from adding a set of quantities of the given units.

Template Parameters
UnitT1first unit type to add.
UnitTsother unit types to add.

◆ BaseDifference

template<typename UnitT1, typename UnitT2>
using grem::physics::BaseDifference = BaseUnit<(UnitT1::DIMENSION - UnitT2::DIMENSION), (UnitT1::MAGNITUDE - UnitT2::MAGNITUDE)>

The base unit type resulting from subtracting two quantities of the given units.

Template Parameters
UnitT1unit type to subtract from.
UnitT2unit type to subtract by.

◆ Difference

template<typename UnitT1, typename UnitT2>
using grem::physics::Difference = canonical_unit_t<BaseDifference<UnitT1, UnitT2>>

The canonical unit type resulting from subtracting two quantities of the given units.

Template Parameters
UnitT1unit type to subtract from.
UnitT2unit type to subtract by.

◆ BaseProduct

template<typename UnitT1, typename... UnitTs>
using grem::physics::BaseProduct = BaseUnit<(UnitT1::DIMENSION * ... * UnitTs::DIMENSION), (UnitT1::MAGNITUDE * ... * UnitTs::MAGNITUDE)>

The base unit type resulting from multiplying a set of quantities of the given units.

Template Parameters
UnitT1first unit type to multiply.
UnitTsother unit types to multiply.

◆ Product

template<typename UnitT1, typename... UnitTs>
using grem::physics::Product = canonical_unit_t<BaseProduct<UnitT1, UnitTs...>>

The canonical unit type resulting from multiplying a set of quantities of the given units.

Template Parameters
UnitT1first unit type to multiply.
UnitTsother unit types to multiply.

◆ BaseQuotient

template<typename UnitT1, typename UnitT2>
using grem::physics::BaseQuotient = BaseUnit<(UnitT1::DIMENSION / UnitT2::DIMENSION), (UnitT1::MAGNITUDE / UnitT2::MAGNITUDE)>

The base unit type resulting from dividing two quantities of the given units.

Template Parameters
UnitT1unit type to divide.
UnitT2unit type to divide by.

◆ Quotient

template<typename UnitT1, typename UnitT2>
using grem::physics::Quotient = canonical_unit_t<BaseQuotient<UnitT1, UnitT2>>

The canonical unit type resulting from dividing two quantities of the given units.

Template Parameters
UnitT1unit type to divide.
UnitT2unit type to divide by.

◆ BaseMultipleOf

template<typename UnitT, long double Multiple>
using grem::physics::BaseMultipleOf = BaseUnit<UnitT::DIMENSION, UnitT::MAGNITUDE * Magnitude<Multiple>{}>

The base unit type corresponding to a given unit with its magnitude scaled by a given multiplier.

Template Parameters
UnitTunit type to scale the magnitude of.
Multiplescale to multiply the unit's magnitude by.

◆ MultipleOf

template<typename UnitT, long double Multiple>
using grem::physics::MultipleOf = canonical_unit_t<BaseMultipleOf<UnitT, Multiple>>

The canonical unit type corresponding to a given unit with its magnitude scaled by a given multiplier.

Template Parameters
UnitTunit type to scale the magnitude of.
Multiplescale to multiply the unit's magnitude by.

◆ BaseRelative

template<typename UnitT>
using grem::physics::BaseRelative = BaseUnit<UnitT::DIMENSION, Magnitude<UnitT::MagnitudeType::VALUE, false>{}>

The base unit type corresponding to a given unit with its magnitude made relative.

Template Parameters
UnitTunit type to get the relative unit of.

◆ Relative

template<typename UnitT>
using grem::physics::Relative = canonical_unit_t<BaseRelative<UnitT>>

The canonical unit type corresponding to a given unit with its magnitude made relative.

Template Parameters
UnitTunit type to get the relative unit of.

◆ BaseAbsolute

template<typename UnitT>
using grem::physics::BaseAbsolute = BaseUnit<UnitT::DIMENSION, Magnitude<UnitT::MagnitudeType::VALUE, true>{}>

The base unit type corresponding to a given unit with its magnitude made absolute.

Template Parameters
UnitTunit type to get the absolute unit of.

◆ BaseSqrt

template<typename UnitT>
using grem::physics::BaseSqrt = BaseUnit<sqrt(UnitT::DIMENSION), sqrt(UnitT::MAGNITUDE)>

The base unit type resulting from taking the square root of a quantity of the given unit.

Template Parameters
UnitTunit type to get the square root of.

◆ Sqrt

template<typename UnitT>
using grem::physics::Sqrt = canonical_unit_t<BaseSqrt<UnitT>>

The canonical unit type resulting from taking the square root of a quantity of the given unit.

Template Parameters
UnitTunit type to get the square root of.

◆ BaseReciprocal

template<typename UnitT>
using grem::physics::BaseReciprocal = BaseUnit<DIMENSIONLESS / UnitT::DIMENSION, Magnitude<1.0l / UnitT::MagnitudeType::VALUE, UnitT::MagnitudeType::IS_ABSOLUTE>{}>

The base unit type resulting from taking the multiplicative inverse of a quantity of the given unit.

Template Parameters
UnitTunit type to get the multiplicative inverse of.

◆ Reciprocal

template<typename UnitT>
using grem::physics::Reciprocal = canonical_unit_t<BaseReciprocal<UnitT>>

The canonical unit type resulting from taking the multiplicative inverse of a quantity of the given unit.

Template Parameters
UnitTunit type to get the multiplicative inverse of.

◆ BaseSquare

template<typename UnitT>
using grem::physics::BaseSquare = BaseProduct<UnitT, UnitT>

The base unit type resulting from squaring a quantity of the given unit.

Template Parameters
UnitTunit type to get the square of.

◆ Square

template<typename UnitT>
using grem::physics::Square = canonical_unit_t<BaseSquare<UnitT>>

The canonical unit type resulting from squaring a quantity of the given unit.

Template Parameters
UnitTunit type to get the square of.

◆ BaseCubic

template<typename UnitT>
using grem::physics::BaseCubic = BaseProduct<UnitT, UnitT, UnitT>

The base unit type resulting from taking the cube of a quantity of the given unit.

Template Parameters
UnitTunit type to get the cube of.

◆ Cubic

template<typename UnitT>
using grem::physics::Cubic = canonical_unit_t<BaseCubic<UnitT>>

The canonical unit type resulting from taking the cube of a quantity of the given unit.

Template Parameters
UnitTunit type to get the cube of.

◆ BaseKilo

template<typename UnitT>
using grem::physics::BaseKilo = BaseMultipleOf<UnitT, 1000.0l>

The base unit type corresponding to a given unit with its magnitude scaled by 1000.

Template Parameters
UnitTunit type to scale the magnitude of.

◆ Kilo

template<typename UnitT>
using grem::physics::Kilo = canonical_unit_t<BaseKilo<UnitT>>

The canonical unit type corresponding to a given unit with its magnitude scaled by 1000.

Template Parameters
UnitTunit type to scale the magnitude of.

◆ BaseDeci

template<typename UnitT>
using grem::physics::BaseDeci = BaseMultipleOf<UnitT, 0.1l>

The base unit type corresponding to a given unit with its magnitude scaled by 1/10.

Template Parameters
UnitTunit type to scale the magnitude of.

◆ Deci

template<typename UnitT>
using grem::physics::Deci = canonical_unit_t<BaseDeci<UnitT>>

The canonical unit type corresponding to a given unit with its magnitude scaled by 1/10.

Template Parameters
UnitTunit type to scale the magnitude of.

◆ BaseCenti

template<typename UnitT>
using grem::physics::BaseCenti = BaseMultipleOf<UnitT, 0.01l>

The base unit type corresponding to a given unit with its magnitude scaled by 1/100.

Template Parameters
UnitTunit type to scale the magnitude of.

◆ Centi

template<typename UnitT>
using grem::physics::Centi = canonical_unit_t<BaseCenti<UnitT>>

The canonical unit type corresponding to a given unit with its magnitude scaled by 1/100.

Template Parameters
UnitTunit type to scale the magnitude of.

◆ BaseMilli

template<typename UnitT>
using grem::physics::BaseMilli = BaseMultipleOf<UnitT, 0.001l>

The base unit type corresponding to a given unit with its magnitude scaled by 1/1000.

Template Parameters
UnitTunit type to scale the magnitude of.

◆ Milli

template<typename UnitT>
using grem::physics::Milli = canonical_unit_t<BaseMilli<UnitT>>

The canonical unit type corresponding to a given unit with its magnitude scaled by 1/1000.

Template Parameters
UnitTunit type to scale the magnitude of.

◆ BaseSIUnit

template<Dimension D>
using grem::physics::BaseSIUnit = BaseUnit<D, Magnitude<1.0l>{}>

The base relative SI unit type for a given dimension.

Template Parameters
Ddimension to get the SI unit of.

◆ SIUnit

The canonical relative SI unit type for a given dimension.

Template Parameters
Ddimension to get the SI unit of.

◆ Scalar

using grem::physics::Scalar = float

Underlying scalar type of physics quantity components.

◆ AngularQuantity

template<size_t N, typename UnitT>
using grem::physics::AngularQuantity = std::conditional_t<N == 3, Quantity<3, UnitT>, Quantity<1, UnitT>>

Physical quantity type representing an angular quantity in world space, with one component in 2D and three components in 3D.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).
UnitTunit type of the quantity.

◆ Mask

template<size_t N>
using grem::physics::Mask = std::conditional_t<N == 1, bool, vec<N, bool>>

Boolean quantity.

Unitless.

Template Parameters
Nnumber of dimensions of the world space (must be 1, 2 or 3).

◆ Mask1D

Boolean quantity in 1-dimensional space. Unitless.

◆ Mask2D

Boolean quantity in 2-dimensional space. Unitless.

◆ Mask3D

Boolean quantity in 3-dimensional space. Unitless.

◆ AngularMask

template<size_t N>
using grem::physics::AngularMask = std::conditional_t<N == 3, Mask<N>, Mask<1>>

Angular boolean quantity.

Unitless.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ AngularMask2D

Angular boolean quantity in 2-dimensional space. Unitless.

◆ AngularMask3D

Angular boolean quantity in 2-dimensional space. Unitless.

◆ AngularTensorQuantity

template<size_t N, typename UnitT>
using grem::physics::AngularTensorQuantity = std::conditional_t<N == 3, TensorQuantity<3, UnitT>, Quantity<1, UnitT>>

◆ Scale

template<size_t N>
using grem::physics::Scale = Quantity<N, Unitless>

Dimensionless scale.

Unitless.

Template Parameters
Nnumber of dimensions of the world space (must be 1, 2 or 3).

◆ Scale1D

Dimensionless scale in 1-dimensional space. Unitless.

◆ Scale2D

Dimensionless scale in 2-dimensional space. Unitless.

◆ Scale3D

Dimensionless scale in 3-dimensional space. Unitless.

◆ Coefficient

Unitless scalar quantity.

◆ Basis

template<size_t N>
using grem::physics::Basis = TensorQuantity<N, Unitless>

Basis matrix.

Unitless.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ Basis2D

Basis matrix in 2-dimensional space. Unitless.

◆ Basis3D

Basis matrix in 3-dimensional space. Unitless.

◆ AngularScale

template<size_t N>
using grem::physics::AngularScale = AngularQuantity<N, Unitless>

Angular dimensionless scale.

Unitless.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ AngularScale2D

Angular dimensionless scale in 2-dimensional space. Unitless.

◆ AngularScale3D

Angular dimensionless scale in 3-dimensional space. Unitless.

◆ Angle

using grem::physics::Angle = Quantity<1, Radians>

Angle quantity.

Unit: Radians.

◆ AbsoluteAngle

Absolute angle in world space.

Unit: Radians.

◆ AbsoluteAngles

template<size_t N>
using grem::physics::AbsoluteAngles = AngularQuantity<N, Absolute<Radians>>

Absolute angles in world space.

Unit: Radians.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ Roll

Absolute angle in 2-dimensional space.

Unit: Radians.

◆ PitchYaw

Absolute angles in 3-dimensional space without roll.

Unit: Radians.

◆ PitchYawRoll

Absolute angles in 3-dimensional space.

Unit: Radians.

◆ RollRotation

Relative rotation of roll.

Unit: Radians.

◆ PitchYawRotations

Relative rotations of pitch and yaw.

Unit: Radians.

◆ PitchYawRollRotations

Relative rotations of pitch, yaw and roll.

Unit: Radians.

◆ Rotation

template<size_t N>
using grem::physics::Rotation = AngularQuantity<N, Radians>

Relative rotation quantity.

Unit: Radians.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ Rotation2D

Relative rotation in 2-dimensional space. Unit: Radians.

◆ Rotation3D

Relative rotation in 3-dimensional space. Unit: Radians.

◆ Direction2D

Normalized unit vector in 2-dimensional space. Unitless.

◆ Direction3D

Normalized unit vector in 3-dimensional space. Unitless.

◆ OrthonormalBasis2D

Basis in 2-dimensional space whose columns are all unit vectors that are orthogonal to each other. Unitless.

◆ OrthonormalBasis3D

Basis in 3-dimensional space whose columns are all unit vectors that are orthogonal to each other. Unitless.

◆ Orientation2D

Absolute orientation in 2-dimensional space. Unit: Radians.

◆ Orientation3D

Absolute orientation in 3-dimensional space. Unit: Radians.

◆ Length

template<size_t N>
using grem::physics::Length = Quantity<N, Meters>

Relative distance/length offset quantity.

Unit: Meters.

Template Parameters
Nnumber of dimensions of the world space (must be 1, 2 or 3).

◆ Length1D

Relative distance/length offset in 1-dimensional space. Unit: Meters.

◆ Length2D

Relative distance/length offset in 2-dimensional space. Unit: Meters.

◆ Length3D

Relative distance/length offset in 3-dimensional space. Unit: Meters.

◆ LengthTensor

template<size_t N>
using grem::physics::LengthTensor = TensorQuantity<N, Meters>

Tensor of length quantities.

Unit: Meters.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ LengthTensor2D

Tensor of length quantities in 2-dimensional space. Unit: Meters.

◆ LengthTensor3D

Tensor of length quantities in 3-dimensional space. Unit: Meters.

◆ Position

template<size_t N>
using grem::physics::Position = Quantity<N, Absolute<Meters>>

Absolute position in world space.

Unit: Meters.

Template Parameters
Nnumber of dimensions of the world space (must be 1, 2 or 3).

◆ Position1D

Absolute position in 1-dimensional space. Unit: Meters.

◆ Position2D

Absolute position in 2-dimensional space. Unit: Meters.

◆ Position3D

Absolute position in 3-dimensional space. Unit: Meters.

◆ Distance

Scalar length quantity.

Alias of Length1D, but semantically implies that the value is expected to be non-negative.

Unit: Meters.

◆ SquaredLength

using grem::physics::SquaredLength = Quantity<1, SquareMeters>

Scalar squared length quantity.

Unit: Square meters.

◆ SquaredDistance

Scalar squared length quantity.

Unit: Square meters.

◆ LocalTransformation2D

Affine transformation in 2-dimensional local space.

◆ LocalTransformation3D

Affine transformation in 3-dimensional local space.

◆ Transformation2D

Affine transformation in 2-dimensional space.

◆ Transformation3D

Affine transformation in 3-dimensional space.

◆ InverseLocalTransformation2D

Inverse of an affine transformation in 2-dimensional local space.

◆ InverseLocalTransformation3D

Inverse of an affine transformation in 3-dimensional local space.

◆ InverseTransformation2D

Inverse of an affine transformation in 2-dimensional space.

◆ InverseTransformation3D

Inverse of an affine transformation in 3-dimensional space.

◆ Mass

using grem::physics::Mass = Quantity<1, Kilograms>

Scalar mass quantity.

Unit: Kilograms.

◆ InverseMass

using grem::physics::InverseMass = Quantity<1, PerKilogram>

Scalar inverse mass quantity.

Unit: Per kilogram.

◆ Time

Scalar relative time duration quantity.

Unit: Seconds.

◆ Area

using grem::physics::Area = Quantity<1, SquareMeters>

Scalar area quantity.

Unit: Square meters.

◆ SquaredArea

using grem::physics::SquaredArea = Quantity<1, Square<SquareMeters>>

Scalar squared area quantity.

Unit: Square meters squared.

◆ Volume

using grem::physics::Volume = Quantity<1, CubicMeters>

Scalar volume quantity.

Unit: Cubic meters.

◆ SquaredVolume

using grem::physics::SquaredVolume = Quantity<1, Square<CubicMeters>>

Scalar squared volume quantity.

Unit: Cubic meters squared.

◆ Density

using grem::physics::Density = Quantity<1, KilogramsPerCubicMeter>

Scalar density quantity.

Unit: Kilograms per cubic meter.

◆ Rate

template<size_t N>
using grem::physics::Rate = Quantity<N, Hertz>

Frequency quantity.

Unit: Hertz (AKA per second).

Template Parameters
Nnumber of dimensions of the world space (must be 1, 2 or 3).

◆ Rate1D

Frequency in 1-dimensional space. Unit: Hertz (AKA per second).

◆ Rate2D

Frequency in 2-dimensional space. Unit: Hertz (AKA per second).

◆ Rate3D

Frequency in 3-dimensional space. Unit: Hertz (AKA per second).

◆ Frequency

Scalar frequency quantity.

Alias of Rate1D, but semantically implies that the value is expected to be non-negative.

Unit: Hertz (AKA per second).

◆ AngularFrequency

template<size_t N>
using grem::physics::AngularFrequency = AngularQuantity<N, Hertz>

Angular frequency quantity.

Unit: Hertz (AKA per second).

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ AngularFrequency2D

Angular frequency in 2-dimensional space. Unit: Hertz (AKA per second).

◆ AngularFrequency3D

Angular frequency in 3-dimensional space. Unit: Hertz (AKA per second).

◆ LinearAbsement

template<size_t N>
using grem::physics::LinearAbsement = Quantity<N, MeterSeconds>

Linear absement quantity.

Unit: Meter seconds.

Template Parameters
Nnumber of dimensions of the world space (must be 1, 2 or 3).

◆ LinearAbsement1D

Linear absement in 1-dimensional space. Unit: Meter seconds.

◆ LinearAbsement2D

Linear absement in 2-dimensional space. Unit: Meter seconds.

◆ LinearAbsement3D

Linear absement in 3-dimensional space. Unit: Meter seconds.

◆ Wavenumber

using grem::physics::Wavenumber = Quantity<1, PerMeter>

Scalar wavenumber quantity.

Unit: Per meter.

◆ LinearVelocity

template<size_t N>
using grem::physics::LinearVelocity = Quantity<N, MetersPerSecond>

Linear velocity quantity.

Unit: Meters per second.

Template Parameters
Nnumber of dimensions of the world space (must be 1, 2 or 3).

◆ LinearVelocity1D

Linear velocity in 1-dimensional space. Unit: Meters per second.

◆ LinearVelocity2D

Linear velocity in 2-dimensional space. Unit: Meters per second.

◆ LinearVelocity3D

Linear velocity in 3-dimensional space. Unit: Meters per second.

◆ Speed

Scalar linear velocity quantity.

Alias of LinearVelocity1D, but semantically implies that the value is expected to be non-negative.

Unit: Meters per second.

◆ LinearVelocityTensor

template<size_t N>
using grem::physics::LinearVelocityTensor = TensorQuantity<N, MetersPerSecond>

Tensor of linear velocity quantities.

Unit: Meters per second.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ LinearVelocityTensor2D

Tensor of linear velocity quantities in 2-dimensional space. Unit: Meters per second.

◆ LinearVelocityTensor3D

Tensor of linear velocity quantities in 3-dimensional space. Unit: Meters per second.

◆ SquaredSpeed

using grem::physics::SquaredSpeed = Quantity<1, Square<MetersPerSecond>>

Scalar squared speed quantity.

Unit: Square meters per second squared.

◆ LinearAcceleration

template<size_t N>
using grem::physics::LinearAcceleration = Quantity<N, MetersPerSecondSquared>

Linear acceleration quantity.

Unit: Meters per second squared.

Template Parameters
Nnumber of dimensions of the world space (must be 1, 2 or 3).

◆ LinearAcceleration1D

Linear acceleration in 1-dimensional space. Unit: Meters per second squared.

◆ LinearAcceleration2D

Linear acceleration in 2-dimensional space. Unit: Meters per second squared.

◆ LinearAcceleration3D

Linear acceleration in 3-dimensional space. Unit: Meters per second squared.

◆ Acceleration

Linear acceleration quantity. Unit: Meters per second squared.

◆ SquaredAcceleration

using grem::physics::SquaredAcceleration = Quantity<1, Square<MetersPerSecondSquared>>

Scalar squared acceleration quantity.

Unit: Square meters per second^4.

◆ LinearAccelerationTensor

template<size_t N>
using grem::physics::LinearAccelerationTensor = TensorQuantity<N, MetersPerSecondSquared>

Tensor of linear acceleration quantities.

Unit: Meters per second squared.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ LinearAccelerationTensor2D

Tensor of linear acceleration quantities in 2-dimensional space. Unit: Meters per second squared.

◆ LinearAccelerationTensor3D

Tensor of linear acceleration quantities in 3-dimensional space. Unit: Meters per second squared.

◆ Force

template<size_t N>
using grem::physics::Force = Quantity<N, Newton>

Force quantity.

Unit: Newton (AKA kilogram meters per second squared).

Template Parameters
Nnumber of dimensions of the world space (must be 1, 2 or 3).

◆ Force1D

Force in 1-dimensional space. Unit: Newton (AKA kilogram meters per second squared).

◆ Force2D

Force in 2-dimensional space. Unit: Newton (AKA kilogram meters per second squared).

◆ Force3D

Force in 3-dimensional space. Unit: Newton (AKA kilogram meters per second squared).

◆ ForceTensor

template<size_t N>
using grem::physics::ForceTensor = TensorQuantity<N, Newton>

Tensor of force quantities.

Unit: Newton (AKA kilogram meters per second squared).

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ ForceTensor2D

Tensor of force quantities in 2-dimensional space. Unit: Newton (AKA kilogram meters per second squared).

◆ ForceTensor3D

Tensor of force quantities in 3-dimensional space. Unit: Newton (AKA kilogram meters per second squared).

◆ Torque

template<size_t N>
using grem::physics::Torque = AngularQuantity<N, NewtonMeters>

Torque quantity.

Unit: Newton meters (AKA kilogram square meters per second squared).

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ Torque2D

Torque in 2-dimensional space. Unit: Newton meters (AKA kilogram square meters per second squared).

◆ Torque3D

Torque in 3-dimensional space. Unit: Newton meters (AKA kilogram square meters per second squared).

◆ TorqueTensor

template<size_t N>
using grem::physics::TorqueTensor = TensorQuantity<N, NewtonMeters>

Tensor of torque quantities.

Unit: Newton meters (AKA kilogram square meters per second squared).

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ TorqueTensor2D

Tensor of torque quantities in 2-dimensional space. Unit: Newton meters (AKA kilogram square meters per second squared).

◆ TorqueTensor3D

Tensor of torque quantities in 3-dimensional space. Unit: Newton meters (AKA kilogram square meters per second squared).

◆ LinearImpulse

template<size_t N>
using grem::physics::LinearImpulse = Quantity<N, NewtonSeconds>

Linear impulse quantity.

Unit: Newton seconds (AKA kilogram meters per second).

Template Parameters
Nnumber of dimensions of the world space (must be 1, 2 or 3).

◆ LinearImpulse1D

Linear impulse in 1-dimensional space. Unit: Newton seconds (AKA kilogram meters per second).

◆ LinearImpulse2D

Linear impulse in 2-dimensional space. Unit: Newton seconds (AKA kilogram meters per second).

◆ LinearImpulse3D

Linear impulse in 3-dimensional space. Unit: Newton seconds (AKA kilogram meters per second).

◆ Impulse

Scalar linear impulse quantity.

Alias of LinearImpulse1D, but semantically implies that the value is expected to be non-negative.

Unit: Newton seconds (AKA kilogram meters per second).

◆ LinearImpulseTensor

template<size_t N>
using grem::physics::LinearImpulseTensor = TensorQuantity<N, NewtonSeconds>

Tensor of linear impulse quantities.

Unit: Newton seconds (AKA kilogram meters per second).

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ LinearImpulseTensor2D

Tensor of linear impulse quantities in 2-dimensional space. Unit: Newton seconds (AKA kilogram meters per second).

◆ LinearImpulseTensor3D

Tensor of linear impulse quantities in 3-dimensional space. Unit: Newton seconds (AKA kilogram meters per second).

◆ LinearMomentum

template<size_t N>
using grem::physics::LinearMomentum = Quantity<N, KilogramMetersPerSecond>

Linear momentum quantity.

Unit: Kilogram meters per second.

Template Parameters
Nnumber of dimensions of the world space (must be 1, 2 or 3).

◆ LinearMomentum1D

Linear momentum in 1-dimensional space. Unit: Kilogram meters per second.

◆ LinearMomentum2D

Linear momentum in 2-dimensional space. Unit: Kilogram meters per second.

◆ LinearMomentum3D

Linear momentum in 3-dimensional space. Unit: Kilogram meters per second.

◆ Momentum

Scalar linear momentum quantity.

Alias of LinearMomentum1D, but semantically implies that the value is expected to be non-negative.

Unit: Kilogram meters per second.

◆ LinearMomentumTensor

template<size_t N>
using grem::physics::LinearMomentumTensor = TensorQuantity<N, KilogramMetersPerSecond>

Tensor of linear momentum quantities.

Unit: Kilogram meters per second.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ LinearMomentumTensor2D

Tensor of linear momentum quantities in 2-dimensional space. Unit: Kilogram meters per second.

◆ LinearMomentumTensor3D

Tensor of linear momentum quantities in 3-dimensional space. Unit: Kilogram meters per second.

◆ MomentOfInertia

template<size_t N>
using grem::physics::MomentOfInertia = AngularQuantity<N, KilogramSquareMeters>

Moment of inertia quantity.

Unit: Kilogram square meters.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ MomentOfInertia2D

Moment of inertia in 2-dimensional space. Unit: Kilogram square meters.

◆ MomentOfInertia3D

Moment of inertia in 3-dimensional space. Unit: Kilogram square meters.

◆ MomentOfInertiaTensor

template<size_t N>
using grem::physics::MomentOfInertiaTensor = AngularTensorQuantity<N, KilogramSquareMeters>

Tensor of moment of inertia quantities.

Unit: Kilogram square meters.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ MomentOfInertiaTensor2D

Tensor of moment of inertia quantities in 2-dimensional space. Unit: Kilogram square meters.

◆ MomentOfInertiaTensor3D

Tensor of moment of inertia quantities in 3-dimensional space. Unit: Kilogram square meters.

◆ InverseMomentOfInertia

template<size_t N>
using grem::physics::InverseMomentOfInertia = AngularQuantity<N, PerKilogramSquareMeter>

Inverse moment of inertia quantity.

Unit: Per kilogram square meter.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ InverseMomentOfInertia2D

Inverse moment of inertia in 2-dimensional space. Unit: Kilogram square meters.

◆ InverseMomentOfInertia3D

Inverse moment of inertia in 3-dimensional space. Unit: Kilogram square meters.

◆ InverseMomentOfInertiaTensor

template<size_t N>
using grem::physics::InverseMomentOfInertiaTensor = AngularTensorQuantity<N, PerKilogramSquareMeter>

Tensor of inverse moment of inertia quantities.

Unit: Per kilogram square meter.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ InverseMomentOfInertiaTensor2D

Tensor of inverse moment of inertia quantities in 2-dimensional space. Unit: Per kilogram square meter.

◆ InverseMomentOfInertiaTensor3D

Tensor of inverse moment of inertia quantities in 3-dimensional space. Unit: Per kilogram square meter.

◆ PrincipalMomentsOfInertia

template<size_t N>
using grem::physics::PrincipalMomentsOfInertia = AngularQuantity<N, KilogramSquareMeters>

Principal moments of inertia in inertia major axis space.

Unit: Kilogram square meters.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ PrincipalMomentsOfInertia2D

Principal moments of inertia in 2-dimensional inertia major axis space. Unit: kilogram square meters.

◆ PrincipalMomentsOfInertia3D

Principal moments of inertia in 3-dimensional inertia major axis space. Unit: kilogram square meters.

◆ LocalInertiaOrientation2D

Local inertia orientation of an object in 2-dimensional space. Unit: Radians.

◆ LocalInertiaOrientation3D

Local inertia orientation of an object in 3-dimensional space. Unit: Radians.

◆ InversePrincipalMomentsOfInertia

template<size_t N>
using grem::physics::InversePrincipalMomentsOfInertia = AngularQuantity<N, Reciprocal<KilogramSquareMeters>>

Inverse principal moments of inertia in inertia major axis space.

Unit: Per kilogram square squared.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ InversePrincipalMomentsOfInertia2D

Initial value:
AngularQuantity< N, Reciprocal< KilogramSquareMeters > > InversePrincipalMomentsOfInertia
Inverse principal moments of inertia in inertia major axis space.
Definition quantities.hpp:5896

Inverse principal moments of inertia in 2-dimensional inertia major axis space. Unit: Per kilogram square meter.

◆ InversePrincipalMomentsOfInertia3D

Initial value:

Inverse principal moments of inertia in 3-dimensional inertia major axis space. Unit: Per kilogram square meter.

◆ MomentArm

template<size_t N>
using grem::physics::MomentArm = AngularQuantity<N, Meters>

Moment arm quantity.

Unit: Meters.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ MomentArm2D

Moment arm in 2-dimensional space. Unit: Meters.

◆ MomentArm3D

Moment arm in 3-dimensional space. Unit: Meters.

◆ MomentArmTensor

template<size_t N>
using grem::physics::MomentArmTensor = TensorQuantity<N, Meters>

Tensor of moment arm quantities.

Unit: Meters.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ MomentArmTensor2D

Tensor of moment arm quantities in 2-dimensional space. Unit: Meters.

◆ MomentArmTensor3D

Tensor of moment arm quantities in 3-dimensional space. Unit: Meters.

◆ AngularAbsement

template<size_t N>
using grem::physics::AngularAbsement = AngularQuantity<N, RadianSeconds>

Angular absement quantity.

Unit: Radian seconds.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ AngularAbsement2D

Angular absement in 2-dimensional space. Unit: Radian seconds.

◆ AngularAbsement3D

Angular absement in 3-dimensional space. Unit: Radian seconds.

◆ AngularVelocity

template<size_t N>
using grem::physics::AngularVelocity = AngularQuantity<N, RadiansPerSecond>

Angular velocity quantity.

Unit: Radians per second.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ AngularVelocity2D

Angular velocity in 2-dimensional space. Unit: Radians per second.

◆ AngularVelocity3D

Angular velocity in 3-dimensional space. Unit: Radians per second.

◆ AngularSpeed

using grem::physics::AngularSpeed = Quantity<1, RadiansPerSecond>

Scalar angular speed quantity.

Unit: Radians per second.

◆ AngularVelocityTensor

template<size_t N>
using grem::physics::AngularVelocityTensor = AngularTensorQuantity<N, RadiansPerSecond>

Tensor of angular velocity quantities.

Unit: Radians per second.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ AngularVelocityTensor2D

Tensor of angular velocity quantities in 2-dimensional space. Unit: Radians per second.

◆ AngularVelocityTensor3D

Tensor of angular velocity quantities in 3-dimensional space. Unit: Radians per second.

◆ SquaredAngularSpeed

using grem::physics::SquaredAngularSpeed = Quantity<1, Square<RadiansPerSecond>>

Scalar squared angular speed quantity.

Unit: Square radians per second squared.

◆ RollRate

Time derivative of roll.

Unit: Radians per second.

◆ PitchYawRates

using grem::physics::PitchYawRates = Quantity<2, RadiansPerSecond>

Time derivatives of pitch and yaw.

Unit: Radians per second.

◆ PitchYawRollRates

using grem::physics::PitchYawRollRates = Quantity<3, RadiansPerSecond>

Time derivatives of pitch, yaw and roll.

Unit: Radians per second.

◆ AngularAcceleration

template<size_t N>
using grem::physics::AngularAcceleration = AngularQuantity<N, RadiansPerSecondSquared>

Angular acceleration quantity.

Unit: Radians per second squared.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ AngularAcceleration2D

Angular acceleration in 2-dimensional space. Unit: Radians per second squared.

◆ AngularAcceleration3D

Angular acceleration in 3-dimensional space. Unit: Radians per second squared.

◆ AngularAccelerationTensor

template<size_t N>
using grem::physics::AngularAccelerationTensor = AngularTensorQuantity<N, RadiansPerSecondSquared>

Tensor of angular acceleration quantities.

Unit: Radians per second squared.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ AngularAccelerationTensor2D

Tensor of angular acceleration quantities in 2-dimensional space. Unit: Radians per second squared.

◆ AngularAccelerationTensor3D

Tensor of angular acceleration quantities in 3-dimensional space. Unit: Radians per second squared.

◆ AngularImpulse

template<size_t N>
using grem::physics::AngularImpulse = AngularQuantity<N, NewtonMeterSeconds>

Angular impulse quantity.

Unit: Newton meter seconds (AKA kilogram square meters per second).

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ AngularImpulse2D

Angular impulse in 2-dimensional space. Unit: Newton meter seconds.

◆ AngularImpulse3D

Angular impulse in 3-dimensional space. Unit: Newton meter seconds.

◆ AngularImpulseTensor

template<size_t N>
using grem::physics::AngularImpulseTensor = AngularTensorQuantity<N, NewtonMeterSeconds>

Tensor of angular impulse quantities.

Unit: Newton meter seconds (AKA kilogram square meters per second).

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ AngularImpulseTensor2D

Initial value:
AngularTensorQuantity< N, NewtonMeterSeconds > AngularImpulseTensor
Tensor of angular impulse quantities.
Definition quantities.hpp:6041

Tensor of angular impulse quantities in 2-dimensional space. Unit: Newton meter seconds (AKA kilogram square meters per second).

◆ AngularImpulseTensor3D

Initial value:

Tensor of angular impulse quantities in 3-dimensional space. Unit: Newton meter seconds (AKA kilogram square meters per second).

◆ AngularMomentum

template<size_t N>
using grem::physics::AngularMomentum = AngularQuantity<N, KilogramSquareMetersPerSecond>

Angular momentum quantity.

Unit: Kilogram square meters per second.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ AngularMomentum2D

Angular momentum in 2-dimensional space. Unit: kilogram square meters per second.

◆ AngularMomentum3D

Angular momentum in 3-dimensional space. Unit: kilogram square meters per second.

◆ AngularMomentumTensor

template<size_t N>
using grem::physics::AngularMomentumTensor = AngularTensorQuantity<N, KilogramSquareMetersPerSecond>

Tensor of angular momentum quantities.

Unit: Kilogram square meters per second.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ AngularMomentumTensor2D

Tensor of angular momentum quantities in 2-dimensional space. Unit: Kilogram square meters per second.

◆ AngularMomentumTensor3D

Tensor of angular momentum quantities in 3-dimensional space. Unit: Kilogram square meters per second.

◆ LinearViscousDamping

using grem::physics::LinearViscousDamping = Quantity<1, NewtonSecondsPerMeter>

Scalar linear viscous damping quantity.

Unit: Newton seconds per meter (AKA kilograms per second).

◆ AngularViscousDamping

using grem::physics::AngularViscousDamping = Quantity<1, NewtonMeterSecondsPerRadian>

Scalar angular viscous damping quantity.

Unit: Newton meter seconds per radian.

◆ MassFlowRate

using grem::physics::MassFlowRate = Quantity<1, KilogramsPerSecond>

Scalar mass flow rate quantity.

Unit: Kilograms per second.

◆ VolumetricFlowRate

using grem::physics::VolumetricFlowRate = Quantity<1, CubicMetersPerSecond>

Scalar volumetric flow rate quantity.

Unit: Cubic meters per second.

◆ Work

using grem::physics::Work = Quantity<1, Joules>

Scalar mechanical work quantity.

Unit: Joules (AKA kilogram square meters per second squared).

◆ Power

using grem::physics::Power = Quantity<1, Watts>

Scalar mechanical power quantity.

Unit: Watts (AKA kilogram square meters per second cubed).

◆ Energy

using grem::physics::Energy = Quantity<1, Joules>

Scalar energy quantity.

Unit: Joules (AKA kilogram square meters per second squared).

◆ Stiffness

using grem::physics::Stiffness = Quantity<1, NewtonPerMeter>

Stiffness quantity.

Unit: Newton per meter (AKA kilograms per second squared).

◆ Compliance

using grem::physics::Compliance = Quantity<1, MetersPerNewton>

Compliance quantity.

Unit: Meters per Newton (AKA square seconds per kilogram).

◆ Ray2D

Description of a ray in 2-dimensional space.

◆ Ray3D

Description of a ray in 3-dimensional space.

◆ RayHit2D

Result of a raycast hit in 2-dimensional space.

◆ RayHit3D

Result of a raycast hit in 3-dimensional space.

◆ RayHitInterior2D

Result of a raycast interior hit in 2-dimensional space.

◆ RayHitInterior3D

Result of a raycast interior hit in 3-dimensional space.

◆ RaycastResult2D

Result of a raycast in 2-dimensional space.

◆ RaycastResult3D

Result of a raycast in 3-dimensional space.

◆ Plane2D

Description of an infinite plane in 2-dimensional space.

◆ Plane3D

Description of an infinite plane in 3-dimensional space.

◆ LineSegment2D

Description of a line segment in 2-dimensional space.

◆ LineSegment3D

Description of a line segment in 3-dimensional space.

◆ Box2D

Description of an axis-aligned box in 2-dimensional space.

◆ Box3D

Description of an axis-aligned box in 3-dimensional space.

◆ Sphere2D

Description of a sphere in 2-dimensional space.

◆ Sphere3D

Description of a sphere in 3-dimensional space.

◆ Circle

Description of a circle in 2-dimensional space.

◆ Triangle2D

Description of a triangle in 2-dimensional space.

◆ Triangle3D

Description of a triangle in 3-dimensional space.

◆ PointShape2D

Point shape in 2-dimensional space.

◆ PointShape3D

Point shape in 3-dimensional space.

◆ LineSegmentShape2D

Line segment shape parallel to the local Y axis in 2-dimensional space.

◆ LineSegmentShape3D

Line segment shape parallel to the local Y axis in 3-dimensional space.

◆ InfiniteLineShape2D

Infinite line shape parallel to the local Y axis in 2-dimensional space.

◆ InfiniteLineShape3D

Infinite line shape parallel to the local Y axis in 3-dimensional space.

◆ InfiniteHalfSpaceShape2D

Infinite half-space shape perpendicular to the local Y axis in 2-dimensional space.

◆ InfiniteHalfSpaceShape3D

Infinite half-space shape perpendicular to the local Y axis in 3-dimensional space.

◆ BoxShape2D

Box shape in 2-dimensional space.

◆ BoxShape3D

Box shape in 3-dimensional space.

◆ RectangleShape2D

Rectangle shape in 2-dimensional space.

◆ CubeShape2D

Cube shape in 2-dimensional space.

◆ CubeShape3D

Cube shape in 3-dimensional space.

◆ SquareShape2D

Square shape in 2-dimensional space.

◆ EllipsoidShape2D

Ellipsoid shape in 2-dimensional space.

◆ EllipsoidShape3D

Ellipsoid shape in 3-dimensional space.

◆ EllipseShape2D

Ellipse shape in 2-dimensional space.

◆ SphereShape2D

Sphere shape in 2-dimensional space.

◆ SphereShape3D

Sphere shape in 3-dimensional space.

◆ CircleShape2D

Circle shape in 2-dimensional space.

◆ CapsuleShape2D

Capsule shape aligned with the local Y axis in 2-dimensional space.

◆ CapsuleShape3D

Capsule shape aligned with the local Y axis in 3-dimensional space.

◆ StadiumShape2D

Stadium shape in 2-dimensional space.

◆ TaperedCapsuleShape2D

Tapered capsule shape aligned with the local Y axis in 2-dimensional space.

◆ TaperedCapsuleShape3D

Tapered capsule shape aligned with the local Y axis in 3-dimensional space.

◆ ConvexPolytopeShape2D

Convex polytope shape in 2-dimensional space.

◆ ConvexPolytopeShape3D

Convex polytope shape in 3-dimensional space.

◆ TriangleMeshShape2D

Triangle mesh shape in 2-dimensional space.

◆ TriangleMeshShape3D

Triangle mesh shape in 3-dimensional space.

◆ LocallyTransformedShape2D

Wrapper of another shape with a local transformation applied to it in 2-dimensional space.

◆ LocallyTransformedShape3D

Wrapper of another shape with a local transformation applied to it in 3-dimensional space.

◆ SubCollider2D

Sub-collider of a compound collider shape in 2-dimensional space.

◆ SubCollider3D

Sub-collider of a compound collider shape in 3-dimensional space.

◆ CompoundColliderShape2D

Shape that combines multiple colliders in 2-dimensional space.

◆ CompoundColliderShape3D

Shape that combines multiple colliders in 3-dimensional space.

◆ Shape2D

Generic shape in 2-dimensional space.

◆ Shape3D

Generic shape in 3-dimensional space.

◆ Collider2D

Generic collider in 2-dimensional space.

◆ Collider3D

Generic collider in 3-dimensional space.

◆ ShapeView2D

View of a generic shape in 2-dimensional space.

◆ ShapeView3D

View of a generic shape in 3-dimensional space.

◆ ConvexShapeView2D

View of a generic convex shape in 2-dimensional space.

◆ ConvexShapeView3D

View of a generic convex shape in 3-dimensional space.

◆ ConvexPolytopeShapeView2D

View of a generic convex polytope shape in 2-dimensional space.

◆ ConvexPolytopeShapeView3D

View of a generic convex polytope shape in 3-dimensional space.

◆ ColliderView2D

View of a generic collider in 2-dimensional space.

◆ ColliderView3D

View of a generic collider in 3-dimensional space.

◆ SimulationOptions2D

Configuration options for a 2-dimensional Simulation.

◆ SimulationOptions3D

Configuration options for a 3-dimensional Simulation.

◆ EntityRegistry

template<size_t N>
using grem::physics::EntityRegistry

Entity registry used by a Simulation.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ EntityRegistry2D

Entity registry used by a 2-dimensional Simulation.

◆ EntityRegistry3D

Entity registry used by a 3-dimensional Simulation.

◆ ResourceRegistry

template<size_t N>
using grem::physics::ResourceRegistry
Initial value:
Dynamic container of singleton resource instances, available to tasks defined through a Scheduler.
Definition ResourceRegistry.hpp:43
Acceleration structure for spatial queries in a simulation.
Definition Broadphase.hpp:57
Set of contacts in a Simulation.
Definition collision.hpp:938
List of collision start events between the objects in a Simulation.
Definition collision.hpp:133
List of collision end events between the objects in a Simulation.
Definition collision.hpp:176
Configuration options for a Simulation.
Definition Simulation.hpp:49

Resource registry used by a Simulation.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ ResourceRegistry2D

Resource registry used by a 2-dimensional Simulation.

◆ ResourceRegistry3D

Resource registry used by a 3-dimensional Simulation.

◆ EntityBuilder

Entity builder used by a Simulation.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ EntityBuilder2D

Entity builder used by a 2-dimensional Simulation.

◆ EntityBuilder3D

Entity builder used by a 3-dimensional Simulation.

◆ Scheduler

Scheduler used by a Simulation.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ Scheduler2D

Scheduler used by a 2-dimensional Simulation.

◆ Scheduler3D

Scheduler used by a 3-dimensional Simulation.

◆ Schedule

Schedule used by a Simulation.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ Schedule2D

Schedule used by a 2-dimensional Simulation.

◆ Schedule3D

Schedule used by a 3-dimensional Simulation.

◆ ScheduleStepOptions2D

Options for scheduling a step of a 2-dimensional Simulation.

◆ ScheduleStepOptions3D

Options for scheduling a step of a 3-dimensional Simulation.

◆ Simulation2D

Discrete-time simulation of physical interactions between objects and joints in 2-dimensional space.

The simulation uses a right-handed coordinate system and SI units for any physical quantities.

◆ Simulation3D

Discrete-time simulation of physical interactions between objects and joints in 3-dimensional space.

The simulation uses a right-handed coordinate system and SI units for any physical quantities.

Enumeration Type Documentation

◆ ContactFeatureType

enum class grem::physics::ContactFeatureType : uint8_t
strong

Type of a potentially colliding feature in a contact between two objects.

Enumerator
GENERIC_CONVEX_SURFACE 

Generic convex surface.

Does not have a corresponding feature index.

CONVEX_POLYTOPE_FACE 

Face on a convex polytope shape.

Its feature index is the face index in the convex polytope.

CONVEX_POLYTOPE_EDGE 

Edge on a convex polytope shape.

Its feature index is the edge index in the convex polytope.

TRIANGLE_MESH_FACE 

Face on a triangle mesh shape.

Its feature index is the face index in the triangle mesh.

TRIANGLE_MESH_EDGE 

Edge on a triangle mesh shape.

Its feature index is the index of the first vertex index of the edge in the triangle mesh.

Function Documentation

◆ containsPoint() [1/2]

CollisionFilterTestResult grem::physics::containsPoint ( const Position2D & pointA,
CollisionFilter filterA,
ColliderView2D colliderB,
const Transformation2D & transformationB,
CollisionFilterTest filterTest = {} )
nodiscard

Check if a collider contains a given point.

Parameters
pointApoint to test.
filterAcollision filter of the point.
colliderBcollider to check.
transformationBworld-space transformation of the collider to check.
filterTesttest that potential colliders must pass in order to be considered for collision. The default test passes if the filters of both colliders want either collision or response (or both) on any layer(s). To limit to only colliders that want response (and skip trigger volumes, etc.), use CollisionFilterTest::RESPONSE.
Returns
the result of the collision filter test, or an empty result that converts to false if there was no collision.

◆ containsPoint() [2/2]

CollisionFilterTestResult grem::physics::containsPoint ( const Position3D & pointA,
CollisionFilter filterA,
ColliderView3D colliderB,
const Transformation3D & transformationB,
CollisionFilterTest filterTest = {} )
nodiscard

Check if a collider contains a given point.

Parameters
pointApoint to test.
filterAcollision filter of the point.
colliderBcollider to check.
transformationBworld-space transformation of the collider to check.
filterTesttest that potential colliders must pass in order to be considered for collision. The default test passes if the filters of both colliders want either collision or response (or both) on any layer(s). To limit to only colliders that want response (and skip trigger volumes, etc.), use CollisionFilterTest::RESPONSE.
Returns
the result of the collision filter test, or an empty result that converts to false if there was no collision.

◆ raycast() [1/2]

Pair< RaycastResult2D, CollisionFilterTestResult > grem::physics::raycast ( const Ray2D & rayA,
CollisionFilter filterA,
ColliderView2D colliderB,
const Transformation2D & transformationB,
CollisionFilterTest filterTest = {} )
nodiscard

Find the first collision of a ray with a collider.

Parameters
rayAray to cast.
filterAcollision filter of the ray.
colliderBcollider to cast against.
transformationBworld-space transformation of the collider to cast against.
filterTesttest that potential colliders must pass in order to be considered for collision. The default test passes if the filters of both colliders want either collision or response (or both) on any layer(s). To limit to only colliders that want response (and skip trigger volumes, etc.), use CollisionFilterTest::RESPONSE.
Returns
a pair of:
  • the result of the raycast.
  • the result of the collision filter test.

◆ raycast() [2/2]

Pair< RaycastResult3D, CollisionFilterTestResult > grem::physics::raycast ( const Ray3D & rayA,
CollisionFilter filterA,
ColliderView3D colliderB,
const Transformation3D & transformationB,
CollisionFilterTest filterTest = {} )
nodiscard

Find the first collision of a ray with a collider.

Parameters
rayAray to cast.
filterAcollision filter of the ray.
colliderBcollider to cast against.
transformationBworld-space transformation of the collider to cast against.
filterTesttest that potential colliders must pass in order to be considered for collision. The default test passes if the filters of both colliders want either collision or response (or both) on any layer(s). To limit to only colliders that want response (and skip trigger volumes, etc.), use CollisionFilterTest::RESPONSE.
Returns
a pair of:
  • the result of the raycast.
  • the result of the collision filter test.

◆ shapecast() [1/2]

Pair< ShapecastResult2D, CollisionFilterTestResult > grem::physics::shapecast ( ConvexShapeView2D convexShapeA,
CollisionFilter filterA,
const Transformation2D & transformationA,
ColliderView2D colliderB,
const Transformation2D & transformationB,
Direction2D direction,
Distance maxDistance,
const CollisionAlgorithmOptions2D & options,
CollisionFilterTest filterTest = {} )
nodiscard

Find the first collision between a convex shape a collider when the convex shape is cast from a given starting transformation towards a given direction.

Parameters
convexShapeAconvex shape to cast.
filterAcollision filter of the shape.
transformationAworld-space transformation of the convex shape.
colliderBcollider to cast against.
transformationBworld-space transformation of the collider.
directiondirection to cast the convex shape in.
maxDistancemaximum hit distance. Must be non-negative.
optionscollision algorithm options, see CollisionAlgorithmOptions. Should usually be simulation.resources.getResource<SimulationOptions<N>>().collisionAlgorithmOptions.
filterTesttest that potential colliders must pass in order to be considered for collision. The default test passes if the filters of both colliders want either collision or response (or both) on any layer(s). To limit to only colliders that want response (and skip trigger volumes, etc.), use CollisionFilterTest::RESPONSE.
Returns
a pair of:
  • the result of the shapecast.
  • the result of the collision filter test.

◆ shapecast() [2/2]

Pair< ShapecastResult3D, CollisionFilterTestResult > grem::physics::shapecast ( ConvexShapeView3D convexShapeA,
CollisionFilter filterA,
const Transformation3D & transformationA,
ColliderView3D colliderB,
const Transformation3D & transformationB,
Direction3D direction,
Distance maxDistance,
const CollisionAlgorithmOptions3D & options,
CollisionFilterTest filterTest = {} )
nodiscard

Find the first collision between a convex shape a collider when the convex shape is cast from a given starting transformation towards a given direction.

Parameters
convexShapeAconvex shape to cast.
filterAcollision filter of the shape.
transformationAworld-space transformation of the convex shape.
colliderBcollider to cast against.
transformationBworld-space transformation of the collider.
directiondirection to cast the convex shape in.
maxDistancemaximum hit distance. Must be non-negative.
optionscollision algorithm options, see CollisionAlgorithmOptions. Should usually be simulation.resources.getResource<SimulationOptions<N>>().collisionAlgorithmOptions.
filterTesttest that potential colliders must pass in order to be considered for collision. The default test passes if the filters of both colliders want either collision or response (or both) on any layer(s). To limit to only colliders that want response (and skip trigger volumes, etc.), use CollisionFilterTest::RESPONSE.
Returns
a pair of:
  • the result of the shapecast.
  • the result of the collision filter test.

◆ calculateCombinedStaticFriction()

Coefficient grem::physics::calculateCombinedStaticFriction ( Coefficient staticFrictionA,
Coefficient staticFrictionB,
Material::FrictionCombine frictionCombineA,
Material::FrictionCombine frictionCombineB )
inlinenodiscard

Combine the static friction of two objects based on their friction combination modes.

Parameters
staticFrictionAstatic friction of the first object.
staticFrictionBstatic friction of the second object.
frictionCombineAfriction combination mode of the first object.
frictionCombineBfriction combination mode of the second object.
Returns
the combined static friction.

◆ calculateCombinedKineticFriction()

Coefficient grem::physics::calculateCombinedKineticFriction ( Coefficient kineticFrictionA,
Coefficient kineticFrictionB,
Material::FrictionCombine frictionCombineA,
Material::FrictionCombine frictionCombineB )
inlinenodiscard

Combine the kinetic friction of two objects based on their friction combination modes.

Parameters
kineticFrictionAkinetic friction of the first object.
kineticFrictionBkinetic friction of the second object.
frictionCombineAfriction combination mode of the first object.
frictionCombineBfriction combination mode of the second object.
Returns
the combined kinetic friction.

◆ calculateCombinedRollingResistance()

Coefficient grem::physics::calculateCombinedRollingResistance ( Coefficient rollingResistanceA,
Coefficient rollingResistanceB,
Material::FrictionCombine frictionCombineA,
Material::FrictionCombine frictionCombineB )
inlinenodiscard

Combine the rolling resistance of two objects based on their friction combination modes.

Parameters
rollingResistanceArolling resistance of the first object.
rollingResistanceBrolling resistance of the second object.
frictionCombineAfriction combination mode of the first object.
frictionCombineBfriction combination mode of the second object.
Returns
the combined rolling resistance.

◆ calculateCombinedRestitution()

Coefficient grem::physics::calculateCombinedRestitution ( Coefficient restitutionA,
Coefficient restitutionB,
Material::RestitutionCombine restitutionCombineA,
Material::RestitutionCombine restitutionCombineB )
inlinenodiscard

Combine the restitution of two objects based on their restitution combination modes.

Parameters
restitutionArestitution of the first object.
restitutionBrestitution of the second object.
restitutionCombineArestitution combination mode of the first object.
restitutionCombineBrestitution combination mode of the second object.
Returns
the combined restitution.

◆ calculateInverseMass()

InverseMass grem::physics::calculateInverseMass ( Mass mass)
inlinenodiscard

Calculate the inverse mass of a given mass, while accounting for 0 and infinity.

Parameters
massmass to get the inverse mass of.
Returns
infinity if the mass is 0, 0 if the mass is infinite, the reciprocal of the mass otherwise.

◆ calculateMass()

Mass grem::physics::calculateMass ( InverseMass inverseMass)
inlinenodiscard

Calculate the mass of a given inverse mass, while accounting for 0 and infinity.

Parameters
inverseMassinverse mass to get the mass of.
Returns
infinity if the inverse mass is 0, 0 if the inverse mass is infinite, the reciprocal of the inverse mass otherwise.

◆ calculateInverseMomentOfInertia() [1/2]

InverseMomentOfInertia2D grem::physics::calculateInverseMomentOfInertia ( MomentOfInertia2D momentOfInertia)
inlinenodiscard

Calculate the inverse moment of inertia of a given moment of inertia, while accounting for 0 and infinity.

Parameters
momentOfInertiamoment of inertia to get the inverse moment of inertia of.
Returns
infinity if the moment of inertia is 0, 0 if the moment of inertia is infinite, the reciprocal of the moment of inertia otherwise.

◆ calculateInverseMomentOfInertia() [2/2]

InverseMomentOfInertia3D grem::physics::calculateInverseMomentOfInertia ( MomentOfInertia3D momentOfInertia)
inlinenodiscard

Calculate the inverse moment of inertia of a given moment of inertia, while accounting for 0 and infinity.

Parameters
momentOfInertiamoment of inertia to get the inverse moment of inertia of.
Returns
infinity if the moment of inertia is 0, 0 if the moment of inertia is infinite, the reciprocal of the moment of inertia otherwise, separately for each axis.

◆ calculateMomentOfInertia() [1/2]

MomentOfInertia2D grem::physics::calculateMomentOfInertia ( InverseMomentOfInertia2D inverseMomentOfInertia)
inlinenodiscard

Calculate the moment of inertia of a given inverse moment of inertia, while accounting for 0 and infinity.

Parameters
inverseMomentOfInertiainverse moment of inertia to get the moment of inertia of.
Returns
infinity if the inverse moment of inertia is 0, 0 if the inverse moment of inertia is infinite, the reciprocal of the inverse moment of inertia otherwise.

◆ calculateMomentOfInertia() [2/2]

MomentOfInertia3D grem::physics::calculateMomentOfInertia ( InverseMomentOfInertia3D inverseMomentOfInertia)
inlinenodiscard

Calculate the moment of inertia of a given inverse moment of inertia, while accounting for 0 and infinity.

Parameters
inverseMomentOfInertiainverse moment of inertia to get the moment of inertia of.
Returns
infinity if the inverse moment of inertia is 0, 0 if the inverse moment of inertia is infinite, the reciprocal of the inverse moment of inertia otherwise, separately for each axis.

◆ calculatePrincipalMomentsOfInertia()

template<size_t N>
PrincipalMomentsOfInertia< N > grem::physics::calculatePrincipalMomentsOfInertia ( const Shape< N > & shape,
Mass mass )
inlinenodiscard

Calculate the principal moments of inertia of an object given its shape and mass.

Parameters
shapeshape of the object.
massmass of the object.
Returns
an approximation of the principal moments of inertia of the object.

◆ calculateMomentOfInertiaTensor() [1/2]

MomentOfInertiaTensor2D grem::physics::calculateMomentOfInertiaTensor ( PrincipalMomentsOfInertia2D principalMomentsOfInertia,
LocalInertiaOrientation2D localInertiaOrientation,
Orientation2D orientation )
inlinenodiscard

Calculate the world-space moment of inertia tensor of an object given its principal moments of inertia, the local orientation of the inertia frame, and the world-space orientation of the object.

Parameters
principalMomentsOfInertiaprincipal moments of inertia of the object.
localInertiaOrientationlocal orientation of the inertia frame.
orientationworld-space orientation of the object.
Returns
the world-space moment of inertia tensor of the object.

◆ calculateMomentOfInertiaTensor() [2/2]

MomentOfInertiaTensor3D grem::physics::calculateMomentOfInertiaTensor ( PrincipalMomentsOfInertia3D principalMomentsOfInertia,
LocalInertiaOrientation3D localInertiaOrientation,
Orientation3D orientation )
inlinenodiscard

Calculate the world-space moment of inertia tensor of an object given its principal moments of inertia, the local orientation of the inertia frame, and the world-space orientation of the object.

Parameters
principalMomentsOfInertiaprincipal moments of inertia of the object.
localInertiaOrientationlocal orientation of the inertia frame.
orientationworld-space orientation of the object.
Returns
the world-space moment of inertia tensor of the object.

◆ calculateInverseMomentOfInertiaTensor() [1/2]

InverseMomentOfInertiaTensor2D grem::physics::calculateInverseMomentOfInertiaTensor ( InversePrincipalMomentsOfInertia2D inversePrincipalMomentsOfInertia,
LocalInertiaOrientation2D localInertiaOrientation,
Orientation2D orientation )
inlinenodiscard

Calculate the world-space inverse moment of inertia tensor of an object given its inverse principal moments of inertia, the local orientation of the inertia frame, and the world-space orientation of the object.

Parameters
inversePrincipalMomentsOfInertiainverse principal moments of inertia of the object.
localInertiaOrientationlocal orientation of the inertia frame.
orientationworld-space orientation of the object.
Returns
the world-space inverse moment of inertia tensor of the object.

◆ calculateInverseMomentOfInertiaTensor() [2/2]

InverseMomentOfInertiaTensor3D grem::physics::calculateInverseMomentOfInertiaTensor ( InversePrincipalMomentsOfInertia3D inversePrincipalMomentsOfInertia,
LocalInertiaOrientation3D localInertiaOrientation,
Orientation3D orientation )
inlinenodiscard

Calculate the world-space inverse moment of inertia tensor of an object given its inverse principal moments of inertia, the local orientation of the inertia frame, and the world-space orientation of the object.

Parameters
inversePrincipalMomentsOfInertiainverse principal moments of inertia of the object.
localInertiaOrientationlocal orientation of the inertia frame.
orientationworld-space orientation of the object.
Returns
the world-space inverse moment of inertia tensor of the object.

◆ calculateCombinedEffectiveMassAlongAxis()

template<size_t N>
Mass grem::physics::calculateCombinedEffectiveMassAlongAxis ( InverseMass inverseMassA,
InverseMass inverseMassB,
const InverseMomentOfInertiaTensor< N > & inverseMomentOfInertiaTensorA,
const InverseMomentOfInertiaTensor< N > & inverseMomentOfInertiaTensorB,
Length< N > offsetA,
Length< N > offsetB,
Direction< N > axis )
inlinenodiscard

Calculate the combined effective mass of two points on two different objects along a given axis.

Parameters
inverseMassAinverse mass of the first object.
inverseMassBinverse mass of the second object.
inverseMomentOfInertiaTensorAworld-space inverse moment of inertia tensor of the first object.
inverseMomentOfInertiaTensorBworld-space inverse moment of inertia tensor of the second object.
offsetAworld-space offset relative to the first object's center of mass to calculate the effective mass at.
offsetBworld-space offset relative to the second object's center of mass to calculate the effective mass at.
axisworld-space direction along which to calculate the combined effective mass of the two points.
Returns
the combined effective mass of the two objects' points along the given axis.

◆ calculateCombinedEffectiveMassesAlongAxes()

template<size_t N>
Quantity< N, Mass::Unit > grem::physics::calculateCombinedEffectiveMassesAlongAxes ( InverseMass inverseMassA,
InverseMass inverseMassB,
const InverseMomentOfInertiaTensor< N > & inverseMomentOfInertiaTensorA,
const InverseMomentOfInertiaTensor< N > & inverseMomentOfInertiaTensorB,
Length< N > offsetA,
Length< N > offsetB,
OrthonormalBasis< N > axes )
inlinenodiscard

Calculate the combined effective mass of two points on two different objects along each axis of a given orthonormal basis.

Parameters
inverseMassAinverse mass of the first object.
inverseMassBinverse mass of the second object.
inverseMomentOfInertiaTensorAworld-space inverse moment of inertia tensor of the first object.
inverseMomentOfInertiaTensorBworld-space inverse moment of inertia tensor of the second object.
offsetAworld-space offset relative to the first object's center of mass to calculate the effective masses at.
offsetBworld-space offset relative to the second object's center of mass to calculate the effective masses at.
axesbasis of world-space directions along which to calculate the combined effective masses of the two points.
Returns
the combined effective masses of the two objects' points along the given axes.

◆ calculateCombinedEffectiveMomentOfInertiaAroundAxis()

MomentOfInertia2D grem::physics::calculateCombinedEffectiveMomentOfInertiaAroundAxis ( const InverseMomentOfInertiaTensor3D & inverseMomentOfInertiaTensorA,
const InverseMomentOfInertiaTensor3D & inverseMomentOfInertiaTensorB,
Direction3D axis )
inlinenodiscard

Calculate the combined effective moment of inertia of two objects around a given axis.

Parameters
inverseMomentOfInertiaTensorAworld-space inverse moment of inertia tensor of the first object.
inverseMomentOfInertiaTensorBworld-space inverse moment of inertia tensor of the second object.
axisworld-space axis around which to calculate the combined effective moment of inertia of the two objects.
Returns
the combined effective moment of inertia of the two objects around the given axis.

◆ calculateCombinedEffectiveMomentOfInertiaTensor()

template<size_t N>
MomentOfInertiaTensor< N > grem::physics::calculateCombinedEffectiveMomentOfInertiaTensor ( const InverseMomentOfInertiaTensor< N > & inverseMomentOfInertiaTensorA,
const InverseMomentOfInertiaTensor< N > & inverseMomentOfInertiaTensorB )
inlinenodiscard

Calculate the combined effective moment of inertia tensor of two objects.

Parameters
inverseMomentOfInertiaTensorAworld-space inverse moment of inertia tensor of the first object.
inverseMomentOfInertiaTensorBworld-space inverse moment of inertia tensor of the second object.
Returns
the combined effective world-space moment of inertia tensor of the two objects.

◆ calculatePointVelocity()

template<size_t N>
LinearVelocity< N > grem::physics::calculatePointVelocity ( LinearVelocity< N > linearVelocity,
AngularVelocity< N > angularVelocity,
Length< N > offset )
inlinenodiscard

Calculate the linear velocity of a point on an object with linear and angular velocity.

Parameters
linearVelocitylinear velocity of the object's center of mass.
angularVelocityangular velocity of the object around its center of mass.
offsetworld-space offset relative to the object's center of mass to calculate the velocity at.
Returns
the world-space linear velocity of the object at the given point.

◆ applyImpulse()

template<size_t N>
void grem::physics::applyImpulse ( LinearVelocity< N > & linearVelocity,
AngularVelocity< N > & angularVelocity,
InverseMass inverseMass,
const InverseMomentOfInertiaTensor< N > & inverseMomentOfInertiaTensor,
LinearImpulse< N > impulse,
Length< N > offset )
inline

Apply a world-space impulse to an object's velocity.

Parameters
linearVelocitylinear velocity of the object to apply the impulse to.
angularVelocityangular velocity of the object to apply the impulse to.
inverseMassinverse mass of the object.
inverseMomentOfInertiaTensorworld-space inverse moment of inertia tensor of the object.
impulseworld-space impulse to apply.
offsetworld-space offset relative to the object's center of mass to apply the impulse at.

◆ applyCorrectionImpulse()

template<size_t N>
void grem::physics::applyCorrectionImpulse ( ObjectActivity & activity,
LinearVelocity< N > & linearVelocity,
AngularVelocity< N > & angularVelocity,
InverseMass inverseMass,
const InverseMomentOfInertiaTensor< N > & inverseMomentOfInertiaTensor,
LinearImpulse< N > impulse,
Length< N > offset )
inline

Apply a world-space impulse to an object's velocity, making it active and marking it as corrected, unless the object is not correctable.

Parameters
activityactivity state of the object. If ObjectActivity::isCorrectible is false, the impulse is ignored. Otherwise, the impulse is applied, and ObjectActivity::wasCorrected and ObjectActivity::isActive are both set to true.
linearVelocitylinear velocity of the object to apply the impulse to.
angularVelocityangular velocity of the object to apply the impulse to.
inverseMassinverse mass of the object.
inverseMomentOfInertiaTensorworld-space inverse moment of inertia tensor of the object.
impulseworld-space impulse to apply.
offsetworld-space offset relative to the object's center of mass to apply the impulse at.

◆ applyLinearImpulse()

template<size_t N>
void grem::physics::applyLinearImpulse ( LinearVelocity< N > & linearVelocity,
InverseMass inverseMass,
LinearImpulse< N > linearImpulse )
inline

Apply a world-space linear impulse to an object's velocity at its center of mass.

Parameters
linearVelocitylinear velocity of the object to apply the impulse to.
inverseMassinverse mass of the object.
linearImpulseworld-space impulse to apply.

◆ applyLinearCorrectionImpulse()

template<size_t N>
void grem::physics::applyLinearCorrectionImpulse ( ObjectActivity & activity,
LinearVelocity< N > & linearVelocity,
InverseMass inverseMass,
LinearImpulse< N > linearImpulse )
inline

Apply a world-space linear impulse to an object's velocity at its center of mass, making it active and marking it as corrected, unless the object is not correctable.

Parameters
activityactivity state of the object. If ObjectActivity::isCorrectible is false, the impulse is ignored. Otherwise, the impulse is applied, and ObjectActivity::wasCorrected and ObjectActivity::isActive are both set to true.
linearVelocitylinear velocity of the object to apply the impulse to.
inverseMassinverse mass of the object.
linearImpulseworld-space impulse to apply.

◆ applyAngularImpulse()

template<size_t N>
void grem::physics::applyAngularImpulse ( AngularVelocity< N > & angularVelocity,
const InverseMomentOfInertiaTensor< N > & inverseMomentOfInertiaTensor,
AngularImpulse< N > angularImpulse )
inline

Apply a world-space angular impulse to an object's velocity at its center of mass.

Parameters
angularVelocityangular velocity of the object to apply the impulse to.
inverseMomentOfInertiaTensorworld-space inverse moment of inertia tensor of the object.
angularImpulseworld-space angular impulse to apply.

◆ applyAngularCorrectionImpulse()

template<size_t N>
void grem::physics::applyAngularCorrectionImpulse ( ObjectActivity & activity,
AngularVelocity< N > & angularVelocity,
const InverseMomentOfInertiaTensor< N > & inverseMomentOfInertiaTensor,
AngularImpulse< N > angularImpulse )
inline

Apply a world-space angular impulse to an object's velocity at its center of mass, making it active and marking it as corrected, unless the object is not correctable.

Parameters
activityactivity state of the object. If ObjectActivity::isCorrectible is false, the impulse is ignored. Otherwise, the impulse is applied, and ObjectActivity::wasCorrected and ObjectActivity::isActive are both set to true.
angularVelocityangular velocity of the object to apply the impulse to.
inverseMomentOfInertiaTensorworld-space inverse moment of inertia tensor of the object.
angularImpulseworld-space angular impulse to apply.

◆ operator==()

template<unit UnitT1, unit UnitT2>
bool grem::physics::operator== ( UnitT1 a,
UnitT2 b )
nodiscardconsteval

Compare two physical units for equality.

Parameters
afirst unit.
bsecond unit.
Returns
true if the units are equal, false otherwise.

◆ operator+() [1/9]

template<unit UnitT>
requires (!UnitT::MagnitudeType::IS_ABSOLUTE)
auto grem::physics::operator+ ( const UnitT & a)
nodiscardconsteval

Get the unit resulting from taking the additive identity of a quantity of a unit.

This is a special case where the resulting unit is not necessarily canonical, in order to preserve more information than the general BaseUnit::operator+().

Parameters
aunit to get the additive identity of.
Returns
the resulting unit.

◆ operator-() [1/9]

template<unit UnitT>
requires (!UnitT::MagnitudeType::IS_ABSOLUTE)
auto grem::physics::operator- ( const UnitT & a)
nodiscardconsteval

Get the unit resulting from taking the additive inverse of a quantity of a unit.

This is a special case where the resulting unit is not necessarily canonical, in order to preserve more information than the general BaseUnit::operator-().

Parameters
aunit to get the additive inverse of.
Returns
the resulting unit.

◆ operator+() [2/9]

template<unit UnitT>
requires (!UnitT::MagnitudeType::IS_ABSOLUTE)
auto grem::physics::operator+ ( const UnitT & a,
const UnitT & b )
nodiscardconsteval

Get the unit resulting from adding two quantities of the same unit.

This is a special case where the resulting unit is not necessarily canonical, in order to preserve more information than the general BaseUnit::operator+().

Parameters
afirst unit.
bsecond unit.
Returns
the resulting unit.

◆ operator-() [2/9]

template<unit UnitT>
requires (!UnitT::MagnitudeType::IS_ABSOLUTE)
auto grem::physics::operator- ( const UnitT & a,
const UnitT & b )
nodiscardconsteval

Get the unit resulting from subtracting two quantities of the same unit.

This is a special case where the resulting unit is not necessarily canonical, in order to preserve more information than the general BaseUnit::operator-().

Parameters
afirst unit.
bsecond unit.
Returns
the resulting unit.

◆ operator*() [1/34]

template<unit UnitT1, unit UnitlessT2>
requires (UnitlessT2::DIMENSION == DIMENSIONLESS && UnitlessT2::MagnitudeType::VALUE == 1.0l && !UnitlessT2::MagnitudeType::IS_ABSOLUTE)
auto grem::physics::operator* ( const UnitT1 & a,
const UnitlessT2 & b )
nodiscardconsteval

Get the unit resulting from multiplying a unit by a dimensionless unit with a magnitude of 1.

This is a special case where the resulting unit is not necessarily canonical, in order to preserve more information than the general BaseUnit::operator*().

Parameters
afirst unit.
bsecond unit.
Returns
the resulting unit.

◆ operator*() [2/34]

template<unit UnitlessT1, unit UnitT2>
requires (UnitlessT1::DIMENSION == DIMENSIONLESS && UnitlessT1::MagnitudeType::VALUE == 1.0l && !UnitlessT1::MagnitudeType::IS_ABSOLUTE)
auto grem::physics::operator* ( const UnitlessT1 & a,
const UnitT2 & b )
nodiscardconsteval

Get the unit resulting from multiplying a dimensionless unit with a magnitude of 1 with another unit.

This is a special case where the resulting unit is not necessarily canonical, in order to preserve more information than the general BaseUnit::operator*().

Parameters
afirst unit.
bsecond unit.
Returns
the resulting unit.

◆ operator/() [1/6]

template<unit UnitT1, unit UnitlessT2>
requires (UnitlessT2::DIMENSION == DIMENSIONLESS && UnitlessT2::MagnitudeType::VALUE == 1.0l && !UnitlessT2::MagnitudeType::IS_ABSOLUTE)
auto grem::physics::operator/ ( const UnitT1 & a,
const UnitlessT2 & b )
nodiscardconsteval

Get the unit resulting from dividing a unit by a dimensionless unit with a magnitude of 1.

This is a special case where the resulting unit is not necessarily canonical, in order to preserve more information than the general BaseUnit::operator/().

Parameters
afirst unit.
bsecond unit.
Returns
the resulting unit.

◆ multipleOf()

template<long double Multiple, unit UnitT>
auto grem::physics::multipleOf ( UnitT a)
nodiscardconsteval

Get the canonical unit corresponding to a given unit with its magnitude scaled by a given multiplier.

Template Parameters
Multiplescale to multiply the unit's magnitude by.
Parameters
aunit to scale the magnitude of.
Returns
the resulting unit.

◆ relative()

template<unit UnitT>
auto grem::physics::relative ( UnitT a)
nodiscardconsteval

Get the canonical unit corresponding to a given unit with its magnitude made relative.

Parameters
aunit to get the relative unit of.
Returns
the resulting unit.

◆ absolute()

template<unit UnitT>
auto grem::physics::absolute ( UnitT a)
nodiscardconsteval

Get the canonical unit corresponding to a given unit with its magnitude made absolute.

Parameters
aunit to get the absolute unit of.
Returns
the resulting unit.

◆ sqrt() [1/2]

template<unit UnitT>
auto grem::physics::sqrt ( UnitT a)
nodiscardconsteval

Get the canonical unit resulting from taking the square root of a quantity of a given unit.

Parameters
aunit to get the square root of.
Returns
the resulting unit.

◆ per()

template<unit UnitT>
auto grem::physics::per ( UnitT a)
nodiscardconsteval

Get the canonical unit resulting from taking the multiplicative inverse of a quantity of a given unit.

Parameters
aunit to get the multiplicative inverse of.
Returns
the resulting unit.

◆ square()

template<unit UnitT>
auto grem::physics::square ( UnitT a)
nodiscardconsteval

Get the canonical unit resulting from squaring a quantity of a given unit.

Parameters
aunit to get the square of.
Returns
the resulting unit.

◆ cubic()

template<unit UnitT>
auto grem::physics::cubic ( UnitT a)
nodiscardconsteval

Get the canonical unit resulting from taking the cube of a quantity of a given unit.

Parameters
aunit to get the cube of.
Returns
the resulting unit.

◆ kilo()

template<unit UnitT>
auto grem::physics::kilo ( UnitT a)
nodiscardconsteval

Get the canonical unit corresponding to a given unit with its magnitude scaled by 1000.

Parameters
aunit to scale the magnitude of.
Returns
the resulting unit.

◆ deci()

template<unit UnitT>
auto grem::physics::deci ( UnitT a)
nodiscardconsteval

Get the canonical unit corresponding to a given unit with its magnitude scaled by 1/10.

Parameters
aunit to scale the magnitude of.
Returns
the resulting unit.

◆ centi()

template<unit UnitT>
auto grem::physics::centi ( UnitT a)
nodiscardconsteval

Get the canonical unit corresponding to a given unit with its magnitude scaled by 1/100.

Parameters
aunit to scale the magnitude of.
Returns
the resulting unit.

◆ milli()

template<unit UnitT>
auto grem::physics::milli ( UnitT a)
nodiscardconsteval

Get the canonical unit corresponding to a given unit with its magnitude scaled by 1/1000.

Parameters
aunit to scale the magnitude of.
Returns
the resulting unit.

◆ operator*() [3/34]

template<size_t N, typename UnitT, unit OtherUnitT>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::operator* ( Quantity< N, UnitT > value,
OtherUnitT  )
nodiscardconstexpr

◆ operator*() [4/34]

template<unit OtherUnitT>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::operator* ( detail::quantity_convertible auto value,
OtherUnitT unit )
nodiscardconstexpr

◆ operator*() [5/34]

template<unit OtherUnitT, size_t N, typename UnitT>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::operator* ( OtherUnitT ,
Quantity< N, UnitT > value )
nodiscardconstexpr

◆ operator*() [6/34]

template<unit OtherUnitT>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::operator* ( OtherUnitT unit,
detail::quantity_convertible auto value )
nodiscardconstexpr

◆ operator/() [2/6]

template<size_t N, typename UnitT, unit OtherUnitT>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::operator/ ( Quantity< N, UnitT > value,
OtherUnitT  )
nodiscardconstexpr

◆ operator/() [3/6]

template<unit OtherUnitT>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::operator/ ( detail::quantity_convertible auto value,
OtherUnitT unit )
nodiscardconstexpr

◆ operator/() [4/6]

template<unit OtherUnitT, size_t N, typename UnitT>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::operator/ ( OtherUnitT ,
Quantity< N, UnitT > value )
nodiscardconstexpr

◆ operator/() [5/6]

template<unit OtherUnitT>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::operator/ ( OtherUnitT unit,
detail::quantity_convertible auto value )
nodiscardconstexpr

◆ operator+() [3/9]

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::operator+ ( A a)
nodiscardconstexpr

◆ operator-() [3/9]

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::operator- ( A a)
nodiscardconstexpr

◆ operator+() [4/9]

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::operator+ ( A a,
B b )
nodiscardconstexpr

◆ operator+=() [1/2]

template<size_t N, typename UnitT>
GREM_ALWAYS_INLINE constexpr Quantity< N, UnitT > &GREM_VECTORCALL grem::physics::operator+= ( Quantity< N, UnitT > & a,
detail::quantity_convertible auto b )
constexpr

◆ operator-() [4/9]

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::operator- ( A a,
B b )
nodiscardconstexpr

◆ operator-=() [1/2]

template<size_t N, typename UnitT>
GREM_ALWAYS_INLINE constexpr Quantity< N, UnitT > &GREM_VECTORCALL grem::physics::operator-= ( Quantity< N, UnitT > & a,
detail::quantity_convertible auto b )
constexpr

◆ operator*() [7/34]

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::operator* ( A a,
B b )
nodiscardconstexpr

◆ operator*=()

template<size_t N, typename UnitT>
GREM_ALWAYS_INLINE constexpr Quantity< N, UnitT > &GREM_VECTORCALL grem::physics::operator*= ( Quantity< N, UnitT > & a,
detail::quantity_convertible auto b )
constexpr

◆ operator/() [6/6]

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::operator/ ( A a,
B b )
nodiscardconstexpr

◆ operator/=()

template<size_t N, typename UnitT>
GREM_ALWAYS_INLINE constexpr Quantity< N, UnitT > &GREM_VECTORCALL grem::physics::operator/= ( Quantity< N, UnitT > & a,
detail::quantity_convertible auto b )
constexpr

◆ min() [1/2]

template<size_t N1, typename UnitT1, size_t N2, typename UnitT2>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::min ( Quantity< N1, UnitT1 > a,
Quantity< N2, UnitT2 > b )
nodiscardconstexpr

◆ max() [1/2]

template<size_t N1, typename UnitT1, size_t N2, typename UnitT2>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::max ( Quantity< N1, UnitT1 > a,
Quantity< N2, UnitT2 > b )
nodiscardconstexpr

◆ clamp() [1/2]

template<size_t N1, typename UnitT1, size_t N2, typename UnitT2, size_t N3, typename UnitT3>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::clamp ( Quantity< N1, UnitT1 > a,
Quantity< N2, UnitT2 > b,
Quantity< N3, UnitT3 > c )
nodiscardconstexpr

◆ sum()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::sum ( A a)
nodiscardconstexpr

◆ product()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::product ( A a)
nodiscardconstexpr

◆ minComponent()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::minComponent ( A a)
nodiscardconstexpr

◆ maxComponent()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::maxComponent ( A a)
nodiscardconstexpr

◆ isfinite() [1/3]

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE auto GREM_VECTORCALL grem::physics::isfinite ( A a)
nodiscard

◆ isinf() [1/3]

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE auto GREM_VECTORCALL grem::physics::isinf ( A a)
nodiscard

◆ isnan() [1/3]

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE auto GREM_VECTORCALL grem::physics::isnan ( A a)
nodiscard

◆ signbit()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE auto GREM_VECTORCALL grem::physics::signbit ( A a)
nodiscard

◆ sign()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::sign ( A a)
nodiscardconstexpr

◆ exp()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE auto GREM_VECTORCALL grem::physics::exp ( A a)
nodiscard

◆ exp2()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE auto GREM_VECTORCALL grem::physics::exp2 ( A a)
nodiscard

◆ pow()

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE auto GREM_VECTORCALL grem::physics::pow ( A a,
B b )
nodiscard

◆ fmod()

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE auto GREM_VECTORCALL grem::physics::fmod ( A a,
B b )
nodiscard

◆ wrap()

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE auto GREM_VECTORCALL grem::physics::wrap ( A a,
B b )
nodiscard

◆ abs()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE auto GREM_VECTORCALL grem::physics::abs ( A a)
nodiscard

◆ dot() [1/2]

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::dot ( A a,
B b )
nodiscardconstexpr

◆ cross() [1/2]

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::cross ( A a,
B b )
nodiscardconstexpr

◆ sqrt() [2/2]

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::sqrt ( A a)
nodiscardconstexpr

◆ inversesqrt()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::inversesqrt ( A a)
nodiscardconstexpr

◆ length2()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::length2 ( A a)
nodiscardconstexpr

◆ length()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::length ( A a)
nodiscardconstexpr

◆ distance()

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::distance ( A a,
B b )
nodiscardconstexpr

◆ distance2()

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::distance2 ( A a,
B b )
nodiscardconstexpr

◆ getAngle() [1/3]

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::getAngle ( A a)
nodiscardconstexpr

◆ tryGetAngle()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::tryGetAngle ( A a)
nodiscardconstexpr

◆ cos()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::cos ( A a)
nodiscardconstexpr

◆ sin()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::sin ( A a)
nodiscardconstexpr

◆ tan()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::tan ( A a)
nodiscardconstexpr

◆ acos()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::acos ( A a)
nodiscardconstexpr

◆ asin()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::asin ( A a)
nodiscardconstexpr

◆ atan()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::atan ( A a)
nodiscardconstexpr

◆ atan2()

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::atan2 ( A a,
B b )
nodiscardconstexpr

◆ tryDivide()

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::tryDivide ( A a,
B b )
nodiscardconstexpr

◆ reflect()

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::reflect ( A a,
B normal )
nodiscardconstexpr

◆ lerp()

template<detail::quantity_ternary_operand_a A, detail::quantity_ternary_operand_b< A > B, detail::quantity_ternary_operand_c< A, B > C>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::lerp ( A a,
B b,
C alpha )
nodiscardconstexpr

◆ unlerp()

template<detail::quantity_ternary_operand_a A, detail::quantity_ternary_operand_b< A > B, detail::quantity_ternary_operand_c< A, B > C>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::unlerp ( A value,
B minValue,
C maxValue )
nodiscardconstexpr

◆ mix() [1/5]

template<detail::quantity_ternary_operand_a A, detail::quantity_ternary_operand_b< A > B, detail::quantity_ternary_operand_c< A, B > C>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::mix ( A a,
B b,
C alpha )
nodiscardconstexpr

◆ step()

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::step ( A edge,
B value )
nodiscardconstexpr

◆ select() [1/2]

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::select ( auto condition,
A ifTrue,
B ifFalse )
nodiscardconstexpr

◆ moveTowards()

template<detail::quantity_ternary_operand_a A, detail::quantity_ternary_operand_b< A > B, detail::quantity_ternary_operand_c< A, B > C>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::moveTowards ( A value,
B targetValue,
C amount )
nodiscardconstexpr

◆ expDecay() [1/2]

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B, typename Frequency, typename Duration>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::expDecay ( A value,
B targetValue,
Frequency decayRate,
Duration deltaTime )
nodiscardconstexpr

◆ expDecay() [2/2]

template<detail::quantity_unary_operand A, typename Frequency, typename Duration>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::expDecay ( A value,
Frequency decayRate,
Duration deltaTime )
nodiscardconstexpr

◆ midpoint()

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::midpoint ( A a,
B b )
nodiscardconstexpr

◆ round()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::round ( A a)
nodiscardconstexpr

◆ floor()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::floor ( A a)
nodiscardconstexpr

◆ ceil()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::ceil ( A a)
nodiscardconstexpr

◆ equal() [1/3]

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::equal ( A a,
B b )
nodiscardconstexpr

◆ equal() [2/3]

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::equal ( A a,
Zero  )
nodiscardconstexpr

◆ equal() [3/3]

template<detail::quantity_unary_operand B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::equal ( Zero ,
B b )
nodiscardconstexpr

◆ notEqual() [1/3]

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::notEqual ( A a,
B b )
nodiscardconstexpr

◆ notEqual() [2/3]

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::notEqual ( A a,
Zero  )
nodiscardconstexpr

◆ notEqual() [3/3]

template<detail::quantity_unary_operand B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::notEqual ( Zero ,
B b )
nodiscardconstexpr

◆ lessThan() [1/3]

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::lessThan ( A a,
B b )
nodiscardconstexpr

◆ lessThan() [2/3]

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::lessThan ( A a,
Zero  )
nodiscardconstexpr

◆ lessThan() [3/3]

template<detail::quantity_unary_operand B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::lessThan ( Zero ,
B b )
nodiscardconstexpr

◆ lessThanEqual() [1/3]

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::lessThanEqual ( A a,
B b )
nodiscardconstexpr

◆ lessThanEqual() [2/3]

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::lessThanEqual ( A a,
Zero  )
nodiscardconstexpr

◆ lessThanEqual() [3/3]

template<detail::quantity_unary_operand B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::lessThanEqual ( Zero ,
B b )
nodiscardconstexpr

◆ greaterThan() [1/3]

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::greaterThan ( A a,
B b )
nodiscardconstexpr

◆ greaterThan() [2/3]

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::greaterThan ( A a,
Zero  )
nodiscardconstexpr

◆ greaterThan() [3/3]

template<detail::quantity_unary_operand B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::greaterThan ( Zero ,
B b )
nodiscardconstexpr

◆ greaterThanEqual() [1/3]

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::greaterThanEqual ( A a,
B b )
nodiscardconstexpr

◆ greaterThanEqual() [2/3]

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::greaterThanEqual ( A a,
Zero  )
nodiscardconstexpr

◆ greaterThanEqual() [3/3]

template<detail::quantity_unary_operand B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::greaterThanEqual ( Zero ,
B b )
nodiscardconstexpr

◆ clampLength()

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::clampLength ( A value,
B maxLength )
nodiscardconstexpr

◆ inverse() [1/9]

template<size_t N, typename UnitT>
GREM_ALWAYS_INLINE constexpr auto grem::physics::inverse ( Quantity< N, UnitT > a)
nodiscardconstexpr

◆ inverse() [2/9]

template<size_t N, typename UnitT>
GREM_ALWAYS_INLINE constexpr auto grem::physics::inverse ( const TensorQuantity< N, UnitT > & a)
nodiscardconstexpr

◆ transpose() [1/2]

template<size_t N, typename UnitT>
GREM_ALWAYS_INLINE constexpr auto grem::physics::transpose ( const TensorQuantity< N, UnitT > & a)
nodiscardconstexpr

◆ inverseTranspose() [1/2]

template<size_t N, typename UnitT>
GREM_ALWAYS_INLINE constexpr auto grem::physics::inverseTranspose ( const TensorQuantity< N, UnitT > & a)
nodiscardconstexpr

◆ operator+() [5/9]

template<size_t N, typename UnitT1, typename UnitT2>
GREM_ALWAYS_INLINE auto grem::physics::operator+ ( const TensorQuantity< N, UnitT1 > & a,
const TensorQuantity< N, UnitT2 > & b )
nodiscard

◆ operator-() [5/9]

template<size_t N, typename UnitT1, typename UnitT2>
GREM_ALWAYS_INLINE auto grem::physics::operator- ( const TensorQuantity< N, UnitT1 > & a,
const TensorQuantity< N, UnitT2 > & b )
nodiscard

◆ operator*() [8/34]

template<size_t N, typename UnitT1, typename UnitT2>
GREM_ALWAYS_INLINE auto grem::physics::operator* ( const TensorQuantity< N, UnitT1 > & a,
const TensorQuantity< N, UnitT2 > & b )
nodiscard

◆ operator*() [9/34]

template<size_t N1, typename UnitT1, detail::quantity_convertible B>
GREM_ALWAYS_INLINE auto grem::physics::operator* ( const TensorQuantity< N1, UnitT1 > & a,
B b )
nodiscard

◆ operator*() [10/34]

template<size_t N2, typename UnitT2, detail::quantity_convertible A>
GREM_ALWAYS_INLINE auto grem::physics::operator* ( A a,
const TensorQuantity< N2, UnitT2 > & b )
nodiscard

◆ dot() [2/2]

template<size_t N, typename UnitT1, typename UnitT2>
GREM_ALWAYS_INLINE auto grem::physics::dot ( const TensorQuantity< N, UnitT1 > & a,
const TensorQuantity< N, UnitT2 > & b )
nodiscard

◆ cross() [2/2]

template<detail::quantity_convertible A, size_t N2, typename UnitT2>
GREM_ALWAYS_INLINE auto grem::physics::cross ( A a,
const TensorQuantity< N2, UnitT2 > & b )
nodiscard

◆ getNormalComponent() [1/2]

template<size_t N, typename UnitT>
decltype(auto) grem::physics::getNormalComponent ( Quantity< N, UnitT > & v)
nodiscard

◆ getNormalComponent() [2/2]

template<size_t N, typename UnitT>
decltype(auto) grem::physics::getNormalComponent ( const Quantity< N, UnitT > & v)
nodiscard

◆ getTangentialComponent()

template<size_t N, typename UnitT>
auto grem::physics::getTangentialComponent ( const Quantity< N, UnitT > & v)
nodiscard

◆ flipSignIf() [1/2]

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::flipSignIf ( A a,
bool b )
nodiscardconstexpr

◆ flipSignIf() [2/2]

template<size_t N>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::flipSignIf ( Direction< N > a,
bool b )
nodiscardconstexpr

◆ copysign() [1/2]

template<detail::quantity_binary_operand_a A, detail::quantity_binary_operand_b< A > B>
GREM_ALWAYS_INLINE auto GREM_VECTORCALL grem::physics::copysign ( A a,
B b )
nodiscard

◆ copysign() [2/2]

template<size_t N, detail::quantity_binary_operand_b< Direction< N > > B>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::copysign ( Direction< N > a,
B b )
nodiscardconstexpr

◆ normalize() [1/2]

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::normalize ( A a)
nodiscardconstexpr

◆ normalize() [2/2]

template<size_t N>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::normalize ( Direction< N > a)
nodiscardconstexpr

◆ tryNormalize() [1/2]

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::tryNormalize ( A a)
nodiscardconstexpr

◆ tryNormalize() [2/2]

template<size_t N>
GREM_ALWAYS_INLINE constexpr auto GREM_VECTORCALL grem::physics::tryNormalize ( Direction< N > a)
nodiscardconstexpr

◆ rotate90DegreesCounterclockwise() [1/2]

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto grem::physics::rotate90DegreesCounterclockwise ( A a)
nodiscardconstexpr

◆ rotate90DegreesCounterclockwise() [2/2]

GREM_ALWAYS_INLINE constexpr auto grem::physics::rotate90DegreesCounterclockwise ( Direction2D a)
nodiscardconstexpr

◆ rotate90DegreesClockwise() [1/2]

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto grem::physics::rotate90DegreesClockwise ( A a)
nodiscardconstexpr

◆ rotate90DegreesClockwise() [2/2]

GREM_ALWAYS_INLINE constexpr auto grem::physics::rotate90DegreesClockwise ( Direction2D a)
nodiscardconstexpr

◆ flipX() [1/2]

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto grem::physics::flipX ( A a)
nodiscardconstexpr

◆ flipX() [2/2]

template<size_t N>
GREM_ALWAYS_INLINE constexpr auto grem::physics::flipX ( Direction< N > a)
nodiscardconstexpr

◆ flipY() [1/2]

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto grem::physics::flipY ( A a)
nodiscardconstexpr

◆ flipY() [2/2]

template<size_t N>
requires (N >= 2)
GREM_ALWAYS_INLINE constexpr auto grem::physics::flipY ( Direction< N > a)
nodiscardconstexpr

◆ flipZ() [1/2]

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto grem::physics::flipZ ( A a)
nodiscardconstexpr

◆ flipZ() [2/2]

template<size_t N>
requires (N >= 3)
GREM_ALWAYS_INLINE constexpr auto grem::physics::flipZ ( Direction< N > a)
nodiscardconstexpr

◆ decomposeMagnitudeDirection()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto grem::physics::decomposeMagnitudeDirection ( A a)
nodiscardconstexpr

◆ tryDecomposeMagnitudeDirection()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto grem::physics::tryDecomposeMagnitudeDirection ( A a)
nodiscardconstexpr

◆ decomposeMagnitudeAngle()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto grem::physics::decomposeMagnitudeAngle ( A a)
nodiscardconstexpr

◆ tryDecomposeMagnitudeAngle()

template<detail::quantity_unary_operand A>
GREM_ALWAYS_INLINE constexpr auto grem::physics::tryDecomposeMagnitudeAngle ( A a)
nodiscardconstexpr

◆ transpose() [2/2]

template<size_t N>
GREM_ALWAYS_INLINE constexpr auto grem::physics::transpose ( const OrthonormalBasis< N > & a)
nodiscardconstexpr

◆ inverse() [3/9]

template<size_t N>
GREM_ALWAYS_INLINE constexpr auto grem::physics::inverse ( const OrthonormalBasis< N > & a)
nodiscardconstexpr

◆ inverseTranspose() [2/2]

template<size_t N>
GREM_ALWAYS_INLINE constexpr auto grem::physics::inverseTranspose ( const OrthonormalBasis< N > & a)
nodiscardconstexpr

◆ isfinite() [2/3]

GREM_ALWAYS_INLINE bool GREM_VECTORCALL grem::physics::isfinite ( Orientation2D a)
nodiscard

◆ isfinite() [3/3]

GREM_ALWAYS_INLINE bvec4 GREM_VECTORCALL grem::physics::isfinite ( Orientation3D a)
nodiscard

◆ isinf() [2/3]

GREM_ALWAYS_INLINE bool GREM_VECTORCALL grem::physics::isinf ( Orientation2D a)
nodiscard

◆ isinf() [3/3]

GREM_ALWAYS_INLINE bvec4 GREM_VECTORCALL grem::physics::isinf ( Orientation3D a)
nodiscard

◆ isnan() [2/3]

GREM_ALWAYS_INLINE bool GREM_VECTORCALL grem::physics::isnan ( Orientation2D a)
nodiscard

◆ isnan() [3/3]

GREM_ALWAYS_INLINE bvec4 GREM_VECTORCALL grem::physics::isnan ( Orientation3D a)
nodiscard

◆ inverse() [4/9]

GREM_ALWAYS_INLINE Orientation2D GREM_VECTORCALL grem::physics::inverse ( Orientation2D a)
nodiscard

◆ inverse() [5/9]

GREM_ALWAYS_INLINE Orientation3D GREM_VECTORCALL grem::physics::inverse ( Orientation3D a)
nodiscard

◆ operator+() [6/9]

GREM_ALWAYS_INLINE Orientation2D GREM_VECTORCALL grem::physics::operator+ ( Orientation2D a,
Rotation2D b )
nodiscard

◆ operator+() [7/9]

GREM_ALWAYS_INLINE Orientation2D GREM_VECTORCALL grem::physics::operator+ ( Orientation2D a,
Scale1D b )
nodiscard

◆ operator+() [8/9]

GREM_ALWAYS_INLINE Orientation3D GREM_VECTORCALL grem::physics::operator+ ( Orientation3D a,
Rotation3D b )
nodiscard

◆ operator+() [9/9]

GREM_ALWAYS_INLINE Orientation3D GREM_VECTORCALL grem::physics::operator+ ( Orientation3D a,
Scale3D b )
nodiscard

◆ operator+=() [2/2]

template<size_t N>
GREM_ALWAYS_INLINE Orientation< N > & grem::physics::operator+= ( Orientation< N > & a,
Rotation< N > b )

◆ operator-() [6/9]

GREM_ALWAYS_INLINE Rotation2D GREM_VECTORCALL grem::physics::operator- ( Orientation2D a,
Orientation2D b )
nodiscard

◆ operator-() [7/9]

GREM_ALWAYS_INLINE Rotation3D GREM_VECTORCALL grem::physics::operator- ( Orientation3D a,
Orientation3D b )
nodiscard

◆ operator-() [8/9]

GREM_ALWAYS_INLINE Orientation2D GREM_VECTORCALL grem::physics::operator- ( Orientation2D a,
Rotation2D b )
nodiscard

◆ operator-() [9/9]

GREM_ALWAYS_INLINE Orientation3D GREM_VECTORCALL grem::physics::operator- ( Orientation3D a,
Rotation3D b )
nodiscard

◆ operator-=() [2/2]

template<size_t N>
GREM_ALWAYS_INLINE Orientation< N > & grem::physics::operator-= ( Orientation< N > & a,
Rotation< N > b )

◆ operator*() [11/34]

GREM_ALWAYS_INLINE Orientation2D GREM_VECTORCALL grem::physics::operator* ( Orientation2D a,
Orientation2D b )
nodiscard

◆ operator*() [12/34]

GREM_ALWAYS_INLINE Orientation3D GREM_VECTORCALL grem::physics::operator* ( Orientation3D a,
Orientation3D b )
nodiscard

◆ slerp() [1/2]

◆ slerp() [2/2]

GREM_ALWAYS_INLINE Orientation3D GREM_VECTORCALL grem::physics::slerp ( Orientation3D a,
Orientation3D b,
Scalar alpha )
nodiscard

◆ mix() [2/5]

◆ mix() [3/5]

GREM_ALWAYS_INLINE Orientation2D GREM_VECTORCALL grem::physics::mix ( Orientation2D a,
Orientation2D b,
Scalar alpha )
nodiscard

◆ mix() [4/5]

◆ mix() [5/5]

GREM_ALWAYS_INLINE Orientation3D GREM_VECTORCALL grem::physics::mix ( Orientation3D a,
Orientation3D b,
Scalar alpha )
nodiscard

◆ scale()

template<size_t N, typename UnitT>
GREM_ALWAYS_INLINE Basis< N > grem::physics::scale ( Quantity< N, UnitT > s)
nodiscard

◆ rotate() [1/7]

GREM_ALWAYS_INLINE OrthonormalBasis2D grem::physics::rotate ( RollRotation r)
nodiscard

◆ rotate() [2/7]

GREM_ALWAYS_INLINE OrthonormalBasis3D grem::physics::rotate ( PitchYawRotations r)
nodiscard

◆ rotate() [3/7]

GREM_ALWAYS_INLINE OrthonormalBasis3D grem::physics::rotate ( PitchYawRollRotations r)
nodiscard

◆ rotate() [4/7]

template<size_t N>
GREM_ALWAYS_INLINE OrthonormalBasis< N > grem::physics::rotate ( Orientation< N > r)
nodiscard

◆ rotate() [5/7]

GREM_ALWAYS_INLINE OrthonormalBasis2D grem::physics::rotate ( Roll angle)
nodiscard

◆ rotate() [6/7]

GREM_ALWAYS_INLINE OrthonormalBasis3D grem::physics::rotate ( PitchYaw angles)
nodiscard

◆ rotate() [7/7]

GREM_ALWAYS_INLINE OrthonormalBasis3D grem::physics::rotate ( PitchYawRoll angles)
nodiscard

◆ rotateScale()

template<size_t N, typename UnitT>
GREM_ALWAYS_INLINE TensorQuantity< N, UnitT > grem::physics::rotateScale ( Orientation< N > r,
Quantity< N, UnitT > s )
nodiscard

◆ getAngle() [2/3]

GREM_ALWAYS_INLINE AbsoluteAngle grem::physics::getAngle ( Orientation2D orientation)
nodiscard

◆ getAngle() [3/3]

GREM_ALWAYS_INLINE AbsoluteAngle grem::physics::getAngle ( Orientation3D orientation)
nodiscard

◆ getAxis()

GREM_ALWAYS_INLINE Direction3D grem::physics::getAxis ( Orientation3D orientation)
nodiscard

◆ getPitch()

GREM_ALWAYS_INLINE AbsoluteAngle grem::physics::getPitch ( Orientation3D orientation)
nodiscard

◆ getYaw()

GREM_ALWAYS_INLINE AbsoluteAngle grem::physics::getYaw ( Orientation3D orientation)
nodiscard

◆ getRoll() [1/2]

GREM_ALWAYS_INLINE AbsoluteAngle grem::physics::getRoll ( Orientation2D orientation)
nodiscard

◆ getRoll() [2/2]

GREM_ALWAYS_INLINE AbsoluteAngle grem::physics::getRoll ( Orientation3D orientation)
nodiscard

◆ getPitchYawRoll()

GREM_ALWAYS_INLINE PitchYawRoll grem::physics::getPitchYawRoll ( Orientation3D orientation)
nodiscard

◆ convertAnglesToForwardDirection() [1/3]

GREM_ALWAYS_INLINE Direction2D grem::physics::convertAnglesToForwardDirection ( Roll angles)
nodiscard

◆ convertAnglesToForwardDirection() [2/3]

GREM_ALWAYS_INLINE Direction3D grem::physics::convertAnglesToForwardDirection ( PitchYaw angles)
nodiscard

◆ convertAnglesToForwardDirection() [3/3]

GREM_ALWAYS_INLINE Direction3D grem::physics::convertAnglesToForwardDirection ( PitchYawRoll angles)
nodiscard

◆ convertForwardDirectionToAngles() [1/2]

GREM_ALWAYS_INLINE Roll grem::physics::convertForwardDirectionToAngles ( Direction2D forward)
nodiscard

◆ convertForwardDirectionToAngles() [2/2]

GREM_ALWAYS_INLINE PitchYaw grem::physics::convertForwardDirectionToAngles ( Direction3D forward)
nodiscard

◆ getAngleDifference()

Angle grem::physics::getAngleDifference ( AbsoluteAngle a,
AbsoluteAngle b )
inlinenodiscard

Get the smallest signed angle between two absolute angles.

Parameters
afirst angle.
bsecond angle.
Returns
the smallest signed angle from angle a to b, in the range [-pi, pi].

◆ getAngleDifferenceAroundAxis()

template<typename UnitT>
requires (!UnitT::MagnitudeType::IS_ABSOLUTE)
Angle grem::physics::getAngleDifferenceAroundAxis ( Direction3D axis,
Quantity< 3, UnitT > a,
Quantity< 3, UnitT > b )
inlinenodiscard

Get the smallest signed angle around an axis between two relative vectors.

Parameters
axisaxis to get the angle around.
afirst vector.
bsecond vector.
Returns
the smallest signed angle around the given axis from the direction of a to the direction of b.

◆ translateRotateScale() [1/6]

template<size_t N>
GREM_ALWAYS_INLINE LocalTransformation< N > GREM_VECTORCALL grem::physics::translateRotateScale ( Length< N > localOffset,
Orientation< N > localOrientation,
Scale< N > localScale )
nodiscard

◆ translateRotateScale() [2/6]

GREM_ALWAYS_INLINE LocalTransformation3D GREM_VECTORCALL grem::physics::translateRotateScale ( Length3D localOffset,
qua< float > localOrientation,
Scale3D localScale )
nodiscard

◆ translateRotateScale() [3/6]

GREM_ALWAYS_INLINE LocalTransformation3D GREM_VECTORCALL grem::physics::translateRotateScale ( Length3D localOffset,
qua< double > localOrientation,
Scale3D localScale )
nodiscard

◆ translateRotate() [1/6]

template<size_t N>
GREM_ALWAYS_INLINE LocalTransformation< N > GREM_VECTORCALL grem::physics::translateRotate ( Length< N > localOffset,
Orientation< N > localOrientation )
nodiscard

◆ translateRotate() [2/6]

GREM_ALWAYS_INLINE LocalTransformation3D GREM_VECTORCALL grem::physics::translateRotate ( Length3D localOffset,
qua< float > localOrientation )
nodiscard

◆ translateRotate() [3/6]

GREM_ALWAYS_INLINE LocalTransformation3D GREM_VECTORCALL grem::physics::translateRotate ( Length3D localOffset,
qua< double > localOrientation )
nodiscard

◆ translateScale() [1/2]

template<size_t N>
GREM_ALWAYS_INLINE LocalTransformation< N > GREM_VECTORCALL grem::physics::translateScale ( Length< N > localOffset,
Scale< N > localScale )
nodiscard

◆ translate() [1/2]

template<size_t N>
GREM_ALWAYS_INLINE LocalTransformation< N > GREM_VECTORCALL grem::physics::translate ( Length< N > localOffset)
nodiscard

◆ translateRotateScale() [4/6]

template<size_t N>
GREM_ALWAYS_INLINE Transformation< N > GREM_VECTORCALL grem::physics::translateRotateScale ( Position< N > position,
Orientation< N > orientation,
Scale< N > scale )
nodiscard

◆ translateRotateScale() [5/6]

GREM_ALWAYS_INLINE Transformation3D GREM_VECTORCALL grem::physics::translateRotateScale ( Position3D position,
qua< float > orientation,
Scale3D scale )
nodiscard

◆ translateRotateScale() [6/6]

GREM_ALWAYS_INLINE Transformation3D GREM_VECTORCALL grem::physics::translateRotateScale ( Position3D position,
qua< double > orientation,
Scale3D scale )
nodiscard

◆ translateRotate() [4/6]

template<size_t N>
GREM_ALWAYS_INLINE Transformation< N > GREM_VECTORCALL grem::physics::translateRotate ( Position< N > position,
Orientation< N > orientation )
nodiscard

◆ translateRotate() [5/6]

GREM_ALWAYS_INLINE Transformation3D GREM_VECTORCALL grem::physics::translateRotate ( Position3D position,
qua< float > orientation )
nodiscard

◆ translateRotate() [6/6]

GREM_ALWAYS_INLINE Transformation3D GREM_VECTORCALL grem::physics::translateRotate ( Position3D position,
qua< double > orientation )
nodiscard

◆ translateScale() [2/2]

template<size_t N>
GREM_ALWAYS_INLINE Transformation< N > GREM_VECTORCALL grem::physics::translateScale ( Position< N > position,
Scale< N > scale )
nodiscard

◆ translate() [2/2]

template<size_t N>
GREM_ALWAYS_INLINE Transformation< N > GREM_VECTORCALL grem::physics::translate ( Position< N > position)
nodiscard

◆ inverseTranslateRotateScale() [1/6]

template<size_t N>
GREM_ALWAYS_INLINE InverseLocalTransformation< N > GREM_VECTORCALL grem::physics::inverseTranslateRotateScale ( Length< N > localOffset,
Orientation< N > localOrientation,
Scale< N > localScale )
nodiscard

◆ inverseTranslateRotateScale() [2/6]

GREM_ALWAYS_INLINE InverseLocalTransformation< 3 > GREM_VECTORCALL grem::physics::inverseTranslateRotateScale ( Length3D localOffset,
qua< float > localOrientation,
Scale3D localScale )
nodiscard

◆ inverseTranslateRotateScale() [3/6]

GREM_ALWAYS_INLINE InverseLocalTransformation< 3 > GREM_VECTORCALL grem::physics::inverseTranslateRotateScale ( Length3D localOffset,
qua< double > localOrientation,
Scale3D localScale )
nodiscard

◆ inverseTranslateRotate() [1/6]

template<size_t N>
GREM_ALWAYS_INLINE InverseLocalTransformation< N > GREM_VECTORCALL grem::physics::inverseTranslateRotate ( Length< N > localOffset,
Orientation< N > localOrientation )
nodiscard

◆ inverseTranslateRotate() [2/6]

GREM_ALWAYS_INLINE InverseLocalTransformation3D GREM_VECTORCALL grem::physics::inverseTranslateRotate ( Length3D localOffset,
qua< float > localOrientation )
nodiscard

◆ inverseTranslateRotate() [3/6]

GREM_ALWAYS_INLINE InverseLocalTransformation3D GREM_VECTORCALL grem::physics::inverseTranslateRotate ( Length3D localOffset,
qua< double > localOrientation )
nodiscard

◆ inverseTranslateScale() [1/2]

template<size_t N>
GREM_ALWAYS_INLINE InverseLocalTransformation< N > GREM_VECTORCALL grem::physics::inverseTranslateScale ( Length< N > localOffset,
Scale< N > localScale )
nodiscard

◆ inverseTranslate() [1/2]

template<size_t N>
GREM_ALWAYS_INLINE InverseLocalTransformation< N > GREM_VECTORCALL grem::physics::inverseTranslate ( Length< N > localOffset)
nodiscard

◆ inverse() [6/9]

template<size_t N>
GREM_ALWAYS_INLINE LocalTransformation< N > GREM_VECTORCALL grem::physics::inverse ( InverseLocalTransformation< N > a)
nodiscard

◆ inverse() [7/9]

template<size_t N>
GREM_ALWAYS_INLINE InverseLocalTransformation< N > GREM_VECTORCALL grem::physics::inverse ( LocalTransformation< N > a)
nodiscard

◆ inverseTranslateRotateScale() [4/6]

template<size_t N>
GREM_ALWAYS_INLINE InverseTransformation< N > GREM_VECTORCALL grem::physics::inverseTranslateRotateScale ( Position< N > position,
Orientation< N > orientation,
Scale< N > scale )
nodiscard

◆ inverseTranslateRotateScale() [5/6]

GREM_ALWAYS_INLINE InverseTransformation< 3 > GREM_VECTORCALL grem::physics::inverseTranslateRotateScale ( Position3D position,
qua< float > orientation,
Scale3D scale )
nodiscard

◆ inverseTranslateRotateScale() [6/6]

GREM_ALWAYS_INLINE InverseTransformation< 3 > GREM_VECTORCALL grem::physics::inverseTranslateRotateScale ( Position3D position,
qua< double > orientation,
Scale3D scale )
nodiscard

◆ inverseTranslateRotate() [4/6]

template<size_t N>
GREM_ALWAYS_INLINE InverseTransformation< N > GREM_VECTORCALL grem::physics::inverseTranslateRotate ( Position< N > position,
Orientation< N > orientation )
nodiscard

◆ inverseTranslateRotate() [5/6]

GREM_ALWAYS_INLINE InverseTransformation< 3 > GREM_VECTORCALL grem::physics::inverseTranslateRotate ( Position3D position,
qua< float > orientation )
nodiscard

◆ inverseTranslateRotate() [6/6]

GREM_ALWAYS_INLINE InverseTransformation< 3 > GREM_VECTORCALL grem::physics::inverseTranslateRotate ( Position3D position,
qua< double > orientation )
nodiscard

◆ inverseTranslateScale() [2/2]

template<size_t N>
GREM_ALWAYS_INLINE InverseTransformation< N > GREM_VECTORCALL grem::physics::inverseTranslateScale ( Position< N > position,
Scale< N > scale )
nodiscard

◆ inverseTranslate() [2/2]

template<size_t N>
GREM_ALWAYS_INLINE InverseTransformation< N > GREM_VECTORCALL grem::physics::inverseTranslate ( Position< N > position)
nodiscard

◆ inverse() [8/9]

template<size_t N>
GREM_ALWAYS_INLINE Transformation< N > GREM_VECTORCALL grem::physics::inverse ( InverseTransformation< N > a)
nodiscard

◆ inverse() [9/9]

template<size_t N>
GREM_ALWAYS_INLINE InverseTransformation< N > GREM_VECTORCALL grem::physics::inverse ( Transformation< N > a)
nodiscard

◆ operator*() [13/34]

◆ operator*() [14/34]

◆ operator*() [15/34]

◆ operator*() [16/34]

◆ operator~()

CollisionLayers grem::physics::operator~ ( CollisionLayer a)
constexprnoexcept

Get the complement of a collision layer.

Parameters
athe layer to invert.
Returns
a set containing all possible layers except the given layer.

◆ operator|()

CollisionLayers grem::physics::operator| ( CollisionLayer a,
CollisionLayer b )
constexprnoexcept

Get the union of two collision layers.

Parameters
afirst layer.
bsecond layer.
Returns
a set containing both a and b.

◆ operator*() [17/34]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr Ray< N > grem::physics::operator* ( const grem::Ray< N, T > & ray,
typename Ray< N >::Unit  )
nodiscardconstexpr

◆ operator*() [18/34]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr Ray< N > grem::physics::operator* ( typename Ray< N >::Unit ,
const grem::Ray< N, T > & ray )
nodiscardconstexpr

◆ operator*() [19/34]

GREM_ALWAYS_INLINE constexpr RayMiss grem::physics::operator* ( const grem::RayMiss & miss,
typename RayMiss::Unit  )
nodiscardconstexpr

◆ operator*() [20/34]

GREM_ALWAYS_INLINE constexpr RayMiss grem::physics::operator* ( typename RayMiss::Unit ,
const grem::RayMiss & miss )
nodiscardconstexpr

◆ operator*() [21/34]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr RayHit< N > grem::physics::operator* ( const grem::RayHit< N, T > & hit,
typename RayHit< N >::Unit  )
nodiscardconstexpr

◆ operator*() [22/34]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr RayHit< N > grem::physics::operator* ( typename RayHit< N >::Unit ,
const grem::RayHit< N, T > & hit )
nodiscardconstexpr

◆ operator*() [23/34]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr RayHitInterior< N > grem::physics::operator* ( const grem::RayHitInterior< N, T > & hit,
typename RayHitInterior< N >::Unit  )
nodiscardconstexpr

◆ operator*() [24/34]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr RayHitInterior< N > grem::physics::operator* ( typename RayHitInterior< N >::Unit ,
const grem::RayHitInterior< N, T > & hit )
nodiscardconstexpr

◆ operator*() [25/34]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr RaycastResult< N > grem::physics::operator* ( const grem::RaycastResult< N, T > & raycastResult,
typename RaycastResult< N >::Unit  )
nodiscardconstexpr

◆ operator*() [26/34]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr RaycastResult< N > grem::physics::operator* ( typename RaycastResult< N >::Unit ,
const grem::RaycastResult< N, T > & raycastResult )
nodiscardconstexpr

◆ operator*() [27/34]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr LineSegment< N > grem::physics::operator* ( const grem::LineSegment< N, T > & line,
typename LineSegment< N >::Unit  )
nodiscardconstexpr

◆ operator*() [28/34]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr LineSegment< N > grem::physics::operator* ( typename LineSegment< N >::Unit ,
const grem::LineSegment< N, T > & line )
nodiscardconstexpr

◆ operator*() [29/34]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr Box< N > grem::physics::operator* ( const grem::Box< N, T > & box,
typename Box< N >::Unit  )
nodiscardconstexpr

◆ operator*() [30/34]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr Box< N > grem::physics::operator* ( typename Box< N >::Unit ,
const grem::Box< N, T > & box )
nodiscardconstexpr

◆ operator*() [31/34]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr Sphere< N > grem::physics::operator* ( const grem::Sphere< N, T > & sphere,
typename Sphere< N >::Unit  )
nodiscardconstexpr

◆ operator*() [32/34]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr Sphere< N > grem::physics::operator* ( typename Sphere< N >::Unit ,
const grem::Sphere< N, T > & sphere )
nodiscardconstexpr

◆ operator*() [33/34]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr Triangle< N > grem::physics::operator* ( const grem::Triangle< N, T > & triangle,
typename Triangle< N >::Unit  )
nodiscardconstexpr

◆ operator*() [34/34]

template<size_t N, typename T>
GREM_ALWAYS_INLINE constexpr Triangle< N > grem::physics::operator* ( typename Triangle< N >::Unit ,
const grem::Triangle< N, T > & triangle )
nodiscardconstexpr

◆ getTransformedBoundingBox()

template<size_t N>
Box< N > grem::physics::getTransformedBoundingBox ( const Transformation< N > & transformation,
const Box< N > & box )
inlinenodiscard

Get the axis-aligned bounding box of an axis-aligned box with a transformation applied to it.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).
Parameters
transformationtransformation to apply to the box.
boxlocal box to transform and get the axis-aligned bounding box of.
Returns
an axis-aligned box that contains the given box after applying the transformation.

◆ forEachVertexIndexInFace() [1/2]

void grem::physics::forEachVertexIndexInFace ( const convex_polytope_shape_2d auto & shape,
ConvexPolytopeFaceIndex faceIndex,
auto callback )
inline

Execute a function for each vertex of a face of a convex polytope shape.

Parameters
shapeshape to iterate the vertices of.
faceIndexindex of the face of the shape to iterate. Must be a valid face index.
callbackfunction to execute for each vertex index of the face.

◆ forEachVertexIndexInFace() [2/2]

void grem::physics::forEachVertexIndexInFace ( const convex_polytope_shape_3d auto & shape,
ConvexPolytopeFaceIndex faceIndex,
auto callback )
inline

Execute a function for each vertex of a face of a convex polytope shape.

Parameters
shapeshape to iterate the vertices of.
faceIndexindex of the face of the shape to iterate. Must be a valid face index.
callbackfunction to execute for each vertex index of the face.

◆ forEachFaceIndexAroundVertex() [1/2]

void grem::physics::forEachFaceIndexAroundVertex ( const convex_polytope_shape_2d auto & shape,
ConvexPolytopeVertexIndex vertexIndex,
auto callback )
inline

Execute a function for each face that is adjacent to a vertex of a convex polytope shape.

Parameters
shapeshape to iterate the faces of.
vertexIndexindex of the vertex of the shape to iterate faces around. Must be a valid vertex index.
callbackfunction to execute for each face index around the vertex.

◆ forEachFaceIndexAroundVertex() [2/2]

void grem::physics::forEachFaceIndexAroundVertex ( const convex_polytope_shape_3d auto & shape,
ConvexPolytopeVertexIndex vertexIndex,
auto callback )
inline

Execute a function for each face that is adjacent to a vertex of a convex polytope shape.

Parameters
shapeshape to iterate the faces of.
vertexIndexindex of the vertex of the shape to iterate faces around. Must be a valid vertex index.
callbackfunction to execute for each face index around the vertex.

◆ forEachNeighboringVertexIndex() [1/2]

void grem::physics::forEachNeighboringVertexIndex ( const convex_polytope_shape_2d auto & shape,
ConvexPolytopeVertexIndex vertexIndex,
auto callback )
inline

Execute a function for each vertex that is directly connected to a specific vertex of a convex polytope shape.

Parameters
shapeshape to iterate the vertices of.
vertexIndexindex of the vertex of the shape to iterate vertices around. Must be a valid vertex index.
callbackfunction to execute for each vertex index neighboring the vertex.

◆ forEachNeighboringVertexIndex() [2/2]

void grem::physics::forEachNeighboringVertexIndex ( const convex_polytope_shape_3d auto & shape,
ConvexPolytopeVertexIndex vertexIndex,
auto callback )
inline

Execute a function for each vertex that is directly connected to a specific vertex of a convex polytope shape.

Parameters
shapeshape to iterate the vertices of.
vertexIndexindex of the vertex of the shape to iterate vertices around. Must be a valid vertex index.
callbackfunction to execute for each vertex index neighboring the vertex.

◆ visit()

template<typename Visitor, size_t N>
decltype(auto) grem::physics::visit ( Visitor && visitor,
ShapeView< N > shape )
constexpr

Call a visitor functor with a reference to the currently active underlying shape of a ShapeView.

Parameters
visitorcallable object that is overloaded to accept any of the Shape alternatives as a parameter.
shapeshape view whose underlying value to pass to the visitor.
Returns
the result of calling the visitor with the currently active shape alternative value.
Exceptions
BadVariantAccessif the shape view is in the valueless by exception state.
anyexception thrown by the visitor.

◆ clamp() [2/2]

template<typename T, typename Low, typename High>
requires (requires(T v, Low l) { v < l; } && requires(T v, High h) { h < v; })
GREM_ALWAYS_INLINE constexpr decltype(auto) grem::clamp ( T && value,
Low && minValue,
High && maxValue )
nodiscardconstexpr

Clamp a value to a specific interval.

Parameters
valuevalue to clamp.
minValuelow boundary to clamp the value to. Must be less than or equal to maxValue.
maxValuehigh boundary to clamp the value to. Must be greater than or equal to minValue.
Returns
minValue if value is less than minValue, maxValue if maxValue is less than value, value otherwise.

◆ max() [2/2]

template<typename A, typename B>
requires (requires(A x, B y) { x < y; })
GREM_ALWAYS_INLINE constexpr decltype(auto) grem::max ( A && a,
B && b )
nodiscardconstexpr

Get the greater of two values, or the first value if they are equivalent.

Parameters
afirst value.
bsecond value.
Returns
b if a is less than b, otherwise a.

◆ min() [2/2]

template<typename A, typename B>
requires (requires(A x, B y) { x < y; })
GREM_ALWAYS_INLINE constexpr decltype(auto) grem::min ( A && a,
B && b )
nodiscardconstexpr

Get the smaller of two values, or the first value if they are equivalent.

Parameters
afirst value.
bsecond value.
Returns
b if b is less than a, otherwise a.

◆ select() [2/2]

template<typename T>
GREM_ALWAYS_INLINE constexpr T grem::select ( bool condition,
T ifTrue,
T ifFalse )
nodiscardconstexpr

Choose between two values based on a condition.

Parameters
conditioncondition to check.
ifTruevalue to return if the condition is true.
ifFalsevalue to return if the condition is false.
Returns
ifTrue if condition is true, ifFalse otherwise.

Variable Documentation

◆ DEFAULT_JOINT_LINEAR_LIMIT_STIFFNESS

Frequency grem::physics::DEFAULT_JOINT_LINEAR_LIMIT_STIFFNESS = Scalar{60} * HERTZ
inlineconstexpr

Default stiffness value for linear joint limits.

◆ DEFAULT_JOINT_LINEAR_LIMIT_DAMPING_RATIO

Coefficient grem::physics::DEFAULT_JOINT_LINEAR_LIMIT_DAMPING_RATIO = Scalar{2}
inlineconstexpr

Default damping value for linear joint limits.

◆ DEFAULT_JOINT_ANGULAR_LIMIT_STIFFNESS

Frequency grem::physics::DEFAULT_JOINT_ANGULAR_LIMIT_STIFFNESS = Scalar{60} * HERTZ
inlineconstexpr

Default stiffness value for angular joint limits.

◆ DEFAULT_JOINT_ANGULAR_LIMIT_DAMPING_RATIO

Coefficient grem::physics::DEFAULT_JOINT_ANGULAR_LIMIT_DAMPING_RATIO = Scalar{2}
inlineconstexpr

Default damping value for angular joint limits.

◆ DIMENSIONLESS

Dimension<0, 0, 0> grem::physics::DIMENSIONLESS {}
inlineconstexpr

Identity dimension.

◆ MASS

Dimension<1, 0, 0> grem::physics::MASS {}
inlineconstexpr

M.

◆ LENGTH

Dimension<0, 1, 0> grem::physics::LENGTH {}
inlineconstexpr

L.

◆ TIME

Dimension<0, 0, 1> grem::physics::TIME {}
inlineconstexpr

T.

◆ ANGLE

Dimension grem::physics::ANGLE = DIMENSIONLESS
inlineconstexpr

◆ AREA

Dimension grem::physics::AREA = LENGTH * LENGTH
inlineconstexpr

L^2.

◆ VOLUME

Dimension grem::physics::VOLUME = LENGTH * LENGTH * LENGTH
inlineconstexpr

L^3.

◆ DENSITY

Dimension grem::physics::DENSITY = MASS / VOLUME
inlineconstexpr

M L^-3.

◆ FREQUENCY

Dimension grem::physics::FREQUENCY = DIMENSIONLESS / TIME
inlineconstexpr

T^-1.

◆ ABSEMENT

Dimension grem::physics::ABSEMENT = LENGTH * TIME
inlineconstexpr

L T.

◆ WAVENUMBER

Dimension grem::physics::WAVENUMBER = DIMENSIONLESS / LENGTH
inlineconstexpr

L^-1.

◆ VELOCITY

Dimension grem::physics::VELOCITY = LENGTH / TIME
inlineconstexpr

L T^-1.

◆ ACCELERATION

Dimension grem::physics::ACCELERATION = VELOCITY / TIME
inlineconstexpr

L T^-2.

◆ FORCE

Dimension grem::physics::FORCE = MASS * ACCELERATION
inlineconstexpr

M L T^-2.

◆ TORQUE

Dimension grem::physics::TORQUE = FORCE * LENGTH
inlineconstexpr

M L^2 T^-2.

◆ IMPULSE

Dimension grem::physics::IMPULSE = FORCE * TIME
inlineconstexpr

M L T^-1.

◆ MOMENTUM

Dimension grem::physics::MOMENTUM = MASS * VELOCITY
inlineconstexpr

M L T^-1.

◆ MOMENT_OF_INERTIA

Dimension grem::physics::MOMENT_OF_INERTIA = MASS * LENGTH * LENGTH
inlineconstexpr

M L^2.

◆ ANGULAR_ABSEMENT

Dimension grem::physics::ANGULAR_ABSEMENT = ANGLE * TIME
inlineconstexpr

T.

◆ ANGULAR_VELOCITY

Dimension grem::physics::ANGULAR_VELOCITY = ANGLE / TIME
inlineconstexpr

T^-1.

◆ ANGULAR_ACCELERATION

Dimension grem::physics::ANGULAR_ACCELERATION = ANGULAR_VELOCITY / TIME
inlineconstexpr

T^-2.

◆ ANGULAR_IMPULSE

Dimension grem::physics::ANGULAR_IMPULSE = TORQUE * TIME
inlineconstexpr

M L^2 T^-1.

◆ ANGULAR_MOMENTUM

Dimension grem::physics::ANGULAR_MOMENTUM = MOMENT_OF_INERTIA * ANGULAR_VELOCITY
inlineconstexpr

M L^2 T^-1.

◆ INTEGRATED_POSITIONAL_IMPULSE

Dimension grem::physics::INTEGRATED_POSITIONAL_IMPULSE = IMPULSE * TIME
inlineconstexpr

M L.

◆ INTEGRATED_POSITIONAL_MOMENTUM

Dimension grem::physics::INTEGRATED_POSITIONAL_MOMENTUM = MOMENTUM * TIME
inlineconstexpr

M L.

◆ INTEGRATED_ROTATIONAL_IMPULSE

Dimension grem::physics::INTEGRATED_ROTATIONAL_IMPULSE = ANGULAR_IMPULSE * TIME
inlineconstexpr

M L^2.

◆ INTEGRATED_ROTATIONAL_MOMENTUM

Dimension grem::physics::INTEGRATED_ROTATIONAL_MOMENTUM = ANGULAR_MOMENTUM * TIME
inlineconstexpr

M L^2.

◆ MASS_FLOW_RATE

Dimension grem::physics::MASS_FLOW_RATE = MASS / TIME
inlineconstexpr

M T^-1.

◆ VOLUMETRIC_FLOW_RATE

Dimension grem::physics::VOLUMETRIC_FLOW_RATE = VOLUME / TIME
inlineconstexpr

L^3 T^-1.

◆ WORK

Dimension grem::physics::WORK = FORCE * LENGTH
inlineconstexpr

M L^2 T^-2.

◆ POWER

Dimension grem::physics::POWER = WORK / TIME
inlineconstexpr

M L^2 T^-3.

◆ ENERGY

Dimension grem::physics::ENERGY = POWER * TIME
inlineconstexpr

M L^2 T^-2.

◆ SI_UNIT

template<Dimension D>
SIUnit<D> grem::physics::SI_UNIT {}
inlineconstexpr

The canonical relative SI unit for a given dimension.

Template Parameters
Ddimension to get the SI unit of.

◆ X

ComponentSwizzle<0> grem::physics::X {}
inlineconstexpr

Tag specifying the X component at index 0 of a vector.

◆ Y

ComponentSwizzle<1> grem::physics::Y {}
inlineconstexpr

Tag specifying the Y component at index 1 of a vector.

◆ Z

ComponentSwizzle<2> grem::physics::Z {}
inlineconstexpr

Tag specifying the Z component at index 2 of a vector.

◆ Quantity< 1, UnitT >::MIN

template<typename UnitT>
Quantity<1, UnitT> grem::physics::Quantity< 1, UnitT >::MIN {Limits<Scalar>::MIN}
inlineconstexpr

◆ Quantity< 1, UnitT >::MAX

template<typename UnitT>
Quantity<1, UnitT> grem::physics::Quantity< 1, UnitT >::MAX {Limits<Scalar>::MAX}
inlineconstexpr

◆ Quantity< 1, UnitT >::SMALLEST_NORMAL

template<typename UnitT>
Quantity<1, UnitT> grem::physics::Quantity< 1, UnitT >::SMALLEST_NORMAL {Limits<Scalar>::SMALLEST_NORMAL}
inlineconstexpr

◆ Quantity< 1, UnitT >::SMALLEST_SUBNORMAL

template<typename UnitT>
Quantity<1, UnitT> grem::physics::Quantity< 1, UnitT >::SMALLEST_SUBNORMAL {Limits<Scalar>::SMALLEST_SUBNORMAL}
inlineconstexpr

◆ Quantity< 1, UnitT >::MACHINE_EPSILON

template<typename UnitT>
Quantity<1, UnitT> grem::physics::Quantity< 1, UnitT >::MACHINE_EPSILON {Limits<Scalar>::MACHINE_EPSILON}
inlineconstexpr

◆ Quantity< 1, UnitT >::INF

template<typename UnitT>
Quantity<1, UnitT> grem::physics::Quantity< 1, UnitT >::INF {Limits<Scalar>::INF}
inlineconstexpr

◆ Quantity< 1, UnitT >::QUIET_NAN

template<typename UnitT>
Quantity<1, UnitT> grem::physics::Quantity< 1, UnitT >::QUIET_NAN {Limits<Scalar>::QUIET_NAN}
inlineconstexpr

◆ Quantity< 2, UnitT >::MIN

template<typename UnitT>
Quantity<2, UnitT> grem::physics::Quantity< 2, UnitT >::MIN {vec<2, Scalar>{Limits<Scalar>::MIN}}
inlineconstexpr

◆ Quantity< 2, UnitT >::MAX

template<typename UnitT>
Quantity<2, UnitT> grem::physics::Quantity< 2, UnitT >::MAX {vec<2, Scalar>{Limits<Scalar>::MAX}}
inlineconstexpr

◆ Quantity< 2, UnitT >::SMALLEST_NORMAL

template<typename UnitT>
Quantity<2, UnitT> grem::physics::Quantity< 2, UnitT >::SMALLEST_NORMAL {vec<2, Scalar>{Limits<Scalar>::SMALLEST_NORMAL}}
inlineconstexpr

◆ Quantity< 2, UnitT >::SMALLEST_SUBNORMAL

template<typename UnitT>
Quantity<2, UnitT> grem::physics::Quantity< 2, UnitT >::SMALLEST_SUBNORMAL {vec<2, Scalar>{Limits<Scalar>::SMALLEST_SUBNORMAL}}
inlineconstexpr

◆ Quantity< 2, UnitT >::MACHINE_EPSILON

template<typename UnitT>
Quantity<2, UnitT> grem::physics::Quantity< 2, UnitT >::MACHINE_EPSILON {vec<2, Scalar>{Limits<Scalar>::MACHINE_EPSILON}}
inlineconstexpr

◆ Quantity< 2, UnitT >::INF

template<typename UnitT>
Quantity<2, UnitT> grem::physics::Quantity< 2, UnitT >::INF {vec<2, Scalar>{Limits<Scalar>::INF}}
inlineconstexpr

◆ Quantity< 2, UnitT >::QUIET_NAN

template<typename UnitT>
Quantity<2, UnitT> grem::physics::Quantity< 2, UnitT >::QUIET_NAN {vec<2, Scalar>{Limits<Scalar>::QUIET_NAN}}
inlineconstexpr

◆ Quantity< 3, UnitT >::MIN

template<typename UnitT>
Quantity<3, UnitT> grem::physics::Quantity< 3, UnitT >::MIN {vec<3, Scalar>{Limits<Scalar>::MIN}}
inlineconstexpr

◆ Quantity< 3, UnitT >::MAX

template<typename UnitT>
Quantity<3, UnitT> grem::physics::Quantity< 3, UnitT >::MAX {vec<3, Scalar>{Limits<Scalar>::MAX}}
inlineconstexpr

◆ Quantity< 3, UnitT >::SMALLEST_NORMAL

template<typename UnitT>
Quantity<3, UnitT> grem::physics::Quantity< 3, UnitT >::SMALLEST_NORMAL {vec<3, Scalar>{Limits<Scalar>::SMALLEST_NORMAL}}
inlineconstexpr

◆ Quantity< 3, UnitT >::SMALLEST_SUBNORMAL

template<typename UnitT>
Quantity<3, UnitT> grem::physics::Quantity< 3, UnitT >::SMALLEST_SUBNORMAL {vec<3, Scalar>{Limits<Scalar>::SMALLEST_SUBNORMAL}}
inlineconstexpr

◆ Quantity< 3, UnitT >::MACHINE_EPSILON

template<typename UnitT>
Quantity<3, UnitT> grem::physics::Quantity< 3, UnitT >::MACHINE_EPSILON {vec<3, Scalar>{Limits<Scalar>::MACHINE_EPSILON}}
inlineconstexpr

◆ Quantity< 3, UnitT >::INF

template<typename UnitT>
Quantity<3, UnitT> grem::physics::Quantity< 3, UnitT >::INF {vec<3, Scalar>{Limits<Scalar>::INF}}
inlineconstexpr

◆ Quantity< 3, UnitT >::QUIET_NAN

template<typename UnitT>
Quantity<3, UnitT> grem::physics::Quantity< 3, UnitT >::QUIET_NAN {vec<3, Scalar>{Limits<Scalar>::QUIET_NAN}}
inlineconstexpr

◆ PI

Angle grem::physics::PI {numbers::pi_v<Scalar>}
inlineconstexpr

Pi constant.

◆ BASIS

template<size_t N>
OrthonormalBasis<N> grem::physics::BASIS
inlineconstexpr

Identity basis for the given number of dimensions.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ BASIS< 2 >

template<>
OrthonormalBasis<2> grem::physics::BASIS< 2 >
inlineconstexpr
Initial value:
vec<2, Scalar>{Scalar{0}, Scalar{1}},
})
float Scalar
Underlying scalar type of physics quantity components.
Definition quantities.hpp:1480
Definition math.hpp:663
static GREM_ALWAYS_INLINE constexpr OrthonormalBasis reinterpret(const auto &value)
Definition quantities.hpp:4350
Definition math.hpp:58

◆ BASIS< 3 >

template<>
OrthonormalBasis<3> grem::physics::BASIS< 3 >
inlineconstexpr
Initial value:
vec<3, Scalar>{Scalar{0}, Scalar{1}, Scalar{0}},
vec<3, Scalar>{Scalar{0}, Scalar{0}, Scalar{1}},
})

◆ BASIS_2D

OrthonormalBasis2D grem::physics::BASIS_2D = BASIS<2>
inlineconstexpr

Identity basis in 2-dimensional space.

◆ BASIS_3D

OrthonormalBasis3D grem::physics::BASIS_3D = BASIS<3>
inlineconstexpr

Identity basis in 3-dimensional space.

◆ X_AXIS

template<size_t N>
Direction<N> grem::physics::X_AXIS
inlineconstexpr

The X axis in the space with the given number of dimensions.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ X_AXIS< 2 >

template<>
Direction<2> grem::physics::X_AXIS< 2 > = Direction<2>::reinterpret(vec<2, Scalar>{Scalar{1}, Scalar{0}})
inlineconstexpr

◆ X_AXIS< 3 >

template<>
Direction<3> grem::physics::X_AXIS< 3 > = Direction<3>::reinterpret(vec<3, Scalar>{Scalar{1}, Scalar{0}, Scalar{0}})
inlineconstexpr

◆ X_AXIS_2D

Direction2D grem::physics::X_AXIS_2D = X_AXIS<2>
inlineconstexpr

The X axis in 2-dimensional space.

◆ X_AXIS_3D

Direction3D grem::physics::X_AXIS_3D = X_AXIS<3>
inlineconstexpr

The X axis in 3-dimensional space.

◆ Y_AXIS

template<size_t N>
Direction<N> grem::physics::Y_AXIS
inlineconstexpr

The Y axis in the space with the given number of dimensions.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

◆ Y_AXIS< 2 >

template<>
Direction<2> grem::physics::Y_AXIS< 2 > = Direction<2>::reinterpret(vec<2, Scalar>{Scalar{0}, Scalar{1}})
inlineconstexpr

◆ Y_AXIS< 3 >

template<>
Direction<3> grem::physics::Y_AXIS< 3 > = Direction<3>::reinterpret(vec<3, Scalar>{Scalar{0}, Scalar{1}, Scalar{0}})
inlineconstexpr

◆ Y_AXIS_2D

Direction2D grem::physics::Y_AXIS_2D = Y_AXIS<2>
inlineconstexpr

The Y axis in 2-dimensional space.

◆ Y_AXIS_3D

Direction3D grem::physics::Y_AXIS_3D = Y_AXIS<3>
inlineconstexpr

The Y axis in 3-dimensional space.

◆ Z_AXIS

template<size_t N>
Direction<N> grem::physics::Z_AXIS
inlineconstexpr

The Z axis in the space with the given number of dimensions.

Template Parameters
Nnumber of dimensions of the world space (must be 3).

◆ Z_AXIS< 3 >

template<>
Direction<3> grem::physics::Z_AXIS< 3 > = Direction<3>::reinterpret(vec<3, Scalar>{Scalar{0}, Scalar{0}, Scalar{1}})
inlineconstexpr

◆ Z_AXIS_3D

Direction3D grem::physics::Z_AXIS_3D = Z_AXIS<3>
inlineconstexpr

The Z axis in 3-dimensional space.