OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::P2ContactPair Struct Reference

2 つの物体が接触しているときのそれらの ID (P2BodyID) のペア More...

#include <P2ContactPair.hpp>

Public Attributes

P2BodyID a
 接触している物体の ID More...
 
P2BodyID b
 接触しているもう一方の物体の ID More...
 

Friends

constexpr friend bool operator== (const P2ContactPair &lhs, const P2ContactPair &rhs) noexcept
 2 つのペアが等しいかを返します。 More...
 
constexpr friend bool operator!= (const P2ContactPair &lhs, const P2ContactPair &rhs) noexcept
 2 つのペアが異なるかを返します。 More...
 

Detailed Description

2 つの物体が接触しているときのそれらの ID (P2BodyID) のペア

Friends And Related Function Documentation

◆ operator!=

constexpr friend bool operator!= ( const P2ContactPair lhs,
const P2ContactPair rhs 
)
friend

2 つのペアが異なるかを返します。

Parameters
lhs比較する値
rhs比較する値
Returns
2 つのペアが異なる場合 true, それ以外の場合は false

◆ operator==

constexpr friend bool operator== ( const P2ContactPair lhs,
const P2ContactPair rhs 
)
friend

2 つのペアが等しいかを返します。

Parameters
lhs比較する値
rhs比較する値
Returns
2 つのペアが等しい場合 true, それ以外の場合は false

Member Data Documentation

◆ a

P2BodyID s3d::P2ContactPair::a

接触している物体の ID

◆ b

P2BodyID s3d::P2ContactPair::b

接触しているもう一方の物体の ID


The documentation for this struct was generated from the following file: