Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

812 B
Raw Blame
// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
// SPDX-FileCopyrightText: Copyright (c) 2008-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

#ifndef GU_BV_CONSTANTS_H
#define GU_BV_CONSTANTS_H

#include "foundation/PxVecMath.h"

namespace
{
	const physx::aos::VecU32V signMask = physx::aos::U4LoadXYZW((physx::PxU32(1)<<31), (physx::PxU32(1)<<31), (physx::PxU32(1)<<31), (physx::PxU32(1)<<31));
	const physx::aos::Vec4V epsFloat4 = physx::aos::V4Load(1e-9f);
	const physx::aos::Vec4V zeroes = physx::aos::V4Zero();
	const physx::aos::Vec4V twos = physx::aos::V4Load(2.0f);
	const physx::aos::Vec4V epsInflateFloat4 = physx::aos::V4Load(1e-7f);
}

#endif // GU_BV_CONSTANTS_H