/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or the license accompanying this file. Do not * remove or modify any license notices. This file is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * */ #pragma once #include #include #include #include #include #include // NvCloth library includes #include #include #include #include #include namespace UnitTest { static constexpr float Tolerance = 1e-4f; static constexpr float ToleranceU8 = 1.0f / 255.0f; void ExpectEq(const AZ::Vector3& azVec, const physx::PxVec3& pxVec, const float tolerance = Tolerance); void ExpectEq(const AZ::Vector4& azVec, const physx::PxVec4& pxVec, const float tolerance = Tolerance); void ExpectEq(const AZ::Quaternion& azQuat, const physx::PxQuat& pxQuat, const float tolerance = Tolerance); void ExpectEq(const physx::PxVec4& pxVecA, const physx::PxVec4& pxVecB, const float tolerance = Tolerance); void ExpectEq(const NvCloth::FabricCookedData::InternalCookedData& azCookedData, const nv::cloth::CookedData& nvCookedData, const float tolerance = Tolerance); void ExpectEq(const NvCloth::FabricCookedData::InternalCookedData& azCookedDataA, const NvCloth::FabricCookedData::InternalCookedData& azCookedDataB, const float tolerance = Tolerance); void ExpectEq(const NvCloth::FabricCookedData& fabricCookedDataA, const NvCloth::FabricCookedData& fabricCookedDataB, const float tolerance = Tolerance); void ExpectEq(const AZStd::vector& azVecA, const AZStd::vector azVecB, const float tolerance = Tolerance); void ExpectEq(const AZStd::vector& azVector, const nv::cloth::Range& nvRange); void ExpectEq(const AZStd::vector& azVector, const nv::cloth::Range& nvRange); void ExpectEq(const AZStd::vector& azVector, const nv::cloth::Range& nvRange, const float tolerance = Tolerance); void ExpectEq(const AZStd::vector& azVector, const nv::cloth::Range& nvRange, const float tolerance = Tolerance); NvCloth::FabricCookedData CreateTestFabricCookedData(); } // namespace UnitTest