//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeIDPair.h:14
///
/// class SubShapeIDPair
///
///
///
///
/// A pair of bodies and their sub shape ID's. Can be used as a key in a map to find a contact point.
///
///
[InteropHandle]
public readonly partial struct SubShapeIDPair : IDisposable
{
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeIDPair.h:20
///
/// SubShapeIDPair() = default
///
///
///
///
/// Constructor
///
///
public static SubShapeIDPair Create() => Jolt.PInvoke.SubShapeIDPair_Create();
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeIDPair.h:21
///
/// SubShapeIDPair(const BodyID &inBody1ID, const SubShapeID &inSubShapeID1, const BodyID &inBody2ID, const SubShapeID &inSubShapeID2)
///
///
public static SubShapeIDPair Create(uint body1ID, uint subShapeID1, uint body2ID, uint subShapeID2) => Jolt.PInvoke.SubShapeIDPair_Create_2(body1ID, subShapeID1, body2ID, subShapeID2);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeIDPair.h:46
///
/// const BodyID & GetBody1ID() const
///
///
public uint GetBody1ID() => Jolt.PInvoke.SubShapeIDPair_GetBody1ID(this);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeIDPair.h:47
///
/// const SubShapeID & GetSubShapeID1() const
///
///
public uint GetSubShapeID1() => Jolt.PInvoke.SubShapeIDPair_GetSubShapeID1(this);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeIDPair.h:48
///
/// const BodyID & GetBody2ID() const
///
///
public uint GetBody2ID() => Jolt.PInvoke.SubShapeIDPair_GetBody2ID(this);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeIDPair.h:49
///
/// const SubShapeID & GetSubShapeID2() const
///
///
public uint GetSubShapeID2() => Jolt.PInvoke.SubShapeIDPair_GetSubShapeID2(this);
///
///
/// C++:
/// Jolt/Physics/Collision/Shape/SubShapeIDPair.h:51
///
/// uint64 GetHash() const
///
///
public ulong GetHash() => Jolt.PInvoke.SubShapeIDPair_GetHash(this);
public void Dispose() => Jolt.PInvoke.SubShapeIDPair_Destroy(this);
}
}