Automatic generation produced by ISE Eiffel

Classes Clusters Cluster hierarchy Chart Relations Flat contracts Go to:
class EG_SPRING_PARTICLE General cluster: physics description: "Calculate spring force for a particle. force := - center_attraction * (particle_position - center) / distance (particle_position, center) + sum [for all links l element particle link] - (stiffness * link_stiffness (l) * (particle_position - other_position)) + sum [for all particle p element particles] electrical_repulsion * (particle_position - other_position) / distance (particle_position, other_position)^3" create: make_with_particles Ancestors EG_FORCE_DIRECTED_PHYSICS_PROPERTIES EG_PARTICLE_SIMULATION_BH* [G -> NUMERIC] EV_MODEL_DOUBLE_MATH Queries arc_cosine (v: REAL_64): REAL_64 arc_sine (v: REAL_64): REAL_64 arc_tangent (v: REAL_64): REAL_64 between (n, a, b: REAL_64): BOOLEAN ceiling (v: REAL_64): REAL_64 center_attraction: REAL_64 center_x: INTEGER_32 center_y: INTEGER_32 cosine (v: REAL_64): REAL_64 dabs (v: REAL_64): REAL_64 delta_x (angle, length: REAL_64): REAL_64 delta_y (angle, length: REAL_64): REAL_64 distance (x1, y1, x2, y2: REAL_64): REAL_64 distance_from_line (x, y, x1, y1, x2, y2: REAL_64): REAL_64 electrical_repulsion: REAL_64 Euler: REAL_64 exp (x: REAL_64): REAL_64 floor (v: REAL_64): REAL_64 force (a_particle: [like particle_type] EG_LINKABLE_FIGURE): EG_VECTOR2D [REAL_64] last_theta_average: REAL_64 line_angle (x1, y1, x2, y2: REAL_64): REAL_64 log (v: REAL_64): REAL_64 log10 (v: REAL_64): REAL_64 log_2 (v: REAL_64): REAL_64 modulo (a, b: REAL_64): REAL_64 particles: LIST [[like particle_type] EG_LINKABLE_FIGURE] Pi: REAL_64 Pi_2: REAL_64 Pi_4: REAL_64 point_on_ellipse (x, y, xc, yc, r1, r2: REAL_64): BOOLEAN point_on_ellipse_boundary (x, y, xc, yc, r1, r2, width: REAL_64): BOOLEAN point_on_line (x, y, x1, y1, x2, y2, width: REAL_64): BOOLEAN point_on_polygon (x, y: REAL_64; points: SPECIAL [EV_COORDINATE]): BOOLEAN point_on_rectangle (x, y, x1, y1, x2, y2: REAL_64): BOOLEAN point_on_rotated_ellipse (x, y, xc, yc, r1, r2, angle: REAL_64): BOOLEAN point_on_rotated_ellipse_boundary (x, y, xc, yc, r1, r2, angle, width: REAL_64): BOOLEAN point_on_segment (x, y, x1, y1, x2, y2, width: REAL_64): BOOLEAN quad_tree: detachable EG_QUAD_TREE sine (v: REAL_64): REAL_64 sqrt (v: REAL_64): REAL_64 Sqrt2: REAL_64 stiffness: REAL_64 tangent (v: REAL_64): REAL_64 theta: REAL_64 Commands set_center (ax, ay: INTEGER_32) set_center_attraction (a_value: REAL_64) set_electrical_repulsion (a_value: REAL_64) set_particles (a_particles: [like particles] LIST [[like particle_type] EG_LINKABLE_FIGURE]) set_stiffness (a_value: REAL_64) set_theta (a_theta: [like theta] REAL_64)
Classes Clusters Cluster hierarchy Chart Relations Flat contracts Go to:

-- Generated by Eiffel Studio --
For more details: eiffel.org