Automatic generation produced by ISE Eiffel
class EG_QUAD_TREE General cluster: physics description: "In a EG_QUAD_TREE a region is splited into fore equaly sized parts: nw|ne --+-- sw|se If the the tree has no childrens, meaning it is a leaf, then particle is element of region otherwise the particles in the childrens are element of the childrens regions." create: make Ancestors ANY Queries center_of_mass_particle: detachable EG_PARTICLE childe_ne: detachable EG_QUAD_TREE childe_nw: detachable EG_QUAD_TREE childe_se: detachable EG_QUAD_TREE childe_sw: detachable EG_QUAD_TREE has (a_particle: EG_PARTICLE): BOOLEAN is_leaf: BOOLEAN particle: detachable EG_PARTICLE region: EV_RECTANGLE valid_tree: BOOLEAN Commands build_center_of_mass insert (a_particle: [attached like particle] attached EG_PARTICLE) Constraints leaf has particle inner nodes do not is leaf implies has particle -- Generated by Eiffel Studio --
For more details: eiffel.org