29#ifndef GU_VEC_CONVEX_H
30#define GU_VEC_CONVEX_H
32#include "foundation/PxVecMath.h"
34#define PX_SUPPORT_INLINE PX_FORCE_INLINE
35#define PX_SUPPORT_FORCE_INLINE PX_FORCE_INLINE
66 center = aos::V3Zero();
69 PX_FORCE_INLINE ConvexV(
const ConvexType::Type type_,
const aos::Vec3VArg center_) : type(type_), bMarginIsRadius(
false)
86 aos::FStore(margin_, &margin);
97 aos::FStore(minMargin_, & minMargin);
102 aos::FStore(sweepMargin_, &sweepMargin);
112 return aos::FLoad(margin);
117 return aos::FLoad(minMargin);
122 return aos::FLoad(sweepMargin);
132 return aos::BLoad(bMarginIsRadius);
137 return bMarginIsRadius;
152 ConvexType::Type type;
153 bool bMarginIsRadius;
160 const FloatV ratio = FLoad(0.25f);
161 const FloatV minMargin = FMin(_marginA, _marginB);
163 return FMul(minMargin, ratio);
170 const FloatV ratio = FLoad(100.f);
171 const FloatV minMargin = FAdd(_marginA, _marginB);
173 return FMul(minMargin, ratio);
Definition GuVecConvex.h:58
#define PX_FORCE_INLINE
Definition PxPreprocessor.h:335
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
Definition GuVecConvex.h:43
Definition PxVecMathAoSScalar.h:90
Definition PxVecMathAoSScalar.h:52
Definition PxVecMathAoSScalar.h:77