This commit is contained in:
2026-03-04 00:50:15 -08:00
parent 9126175569
commit 4211317c03
569 changed files with 122194 additions and 0 deletions

View File

@ -0,0 +1,18 @@
// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
// SPDX-FileCopyrightText: 2025 Jorrit Rouwe
// SPDX-License-Identifier: MIT
JPH_Plane JPH_PlaneFromPointAndNormal(float3 inPoint, float3 inNormal)
{
return JPH_Plane(inNormal, -dot(inNormal, inPoint));
}
float3 JPH_PlaneGetNormal(JPH_Plane inPlane)
{
return inPlane.xyz;
}
float JPH_PlaneSignedDistance(JPH_Plane inPlane, float3 inPoint)
{
return dot(inPoint, inPlane.xyz) + inPlane.w;
}