PlayRho  1.1.0
An Interactive Real-Time-Oriented C++ Physics Engine & Library
playrho::d2::Island Struct Reference

Definition of a self-contained constraint "island". More...

#include <Island.hpp>

Collaboration diagram for playrho::d2::Island:
[legend]

Public Types

using Bodies = std::vector< BodyID >
 Container type for body identifiers.
 
using Contacts = std::vector< ContactID >
 Container type for contact identifiers.
 
using Joints = std::vector< JointID >
 Container type for joint identifiers.
 

Public Attributes

Bodies bodies
 Container of body identifiers.
 
Contacts contacts
 Container of contact identifiers.
 
Joints joints
 Container of joint identifiers.
 

Related Functions

(Note that these are not member functions.)

void Reserve (Island &island, BodyCounter bodies, ContactCounter contacts, JointCounter joints)
 Reserves space ahead of time.
 
void Clear (Island &island) noexcept
 Clears the island containers.
 
bool IsFullOfBodies (const Island &island)
 Determines whether the given island is full of bodies.
 
bool IsFullOfContacts (const Island &island)
 Determines whether the given island is full of contacts.
 
std::size_t Count (const Island &island, BodyID entry)
 Counts the number of occurrences of the given entry in the given island.
 
std::size_t Count (const Island &island, ContactID entry)
 Counts the number of occurrences of the given entry in the given island.
 
std::size_t Count (const Island &island, JointID entry)
 Counts the number of occurrences of the given entry in the given island.
 

Detailed Description

Definition of a self-contained constraint "island".

A container of bodies contacts and joints relevant to handling world dynamics.

Note
This is an internal class.
This data structure is 72-bytes large (on at least one 64-bit platform).

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