A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  
calculateInertiaTensor() — Method in class org.MARS.dynamics.element.body.RigidBody
Calculates the body's inertia tensor

The inertia tensor is the rotational equivalent to mass- it is also linked to mass.

_center — Property in class org.MARS.view.shape.Shape
Displacement vector
checkAllOnTable() — Method in class org.MARS.simulation.Environment
Checks if all of the dynamic objects, including the robot, are on the table
checkAllWallCollisions() — Method in class org.MARS.simulation.Environment
Checks if all of the dynamic objects, including the robot, are colliding with any of the walls
circle — Property in class org.MARS.dynamics.collision.fine.sat.CirclePolygonDetector
Circle to detect
Circle — Class in package org.MARS.view.shape
Circular shape
Circle(x, y, radius, anchor:org.MARS.dynamics.element:IBody, color, alpha, lineColor, lineThickness, hashSize) — Constructor in class org.MARS.view.shape.Circle
Create a circle with the following parameters
CIRCLE — Constant static property in class org.MARS.dynamics.collision.enum.CollisionType
circle1 — Property in class org.MARS.dynamics.collision.fine.sat.CircleCircleDetector
circle 1 to check for collision
circle2 — Property in class org.MARS.dynamics.collision.fine.sat.CircleCircleDetector
circle 2 to check for collision
CircleAxisProjection — Class in package org.MARS.dynamics.collision.fine.sat
Projects a circle onto a given axis

This type is intimately tied to SAT collision detection.

CircleAxisProjection(circle:org.MARS.view.shape:Circle, axis:org.MARS.math:Vector) — Constructor in class org.MARS.dynamics.collision.fine.sat.CircleAxisProjection
Creates a new CircleAxisProjection
CircleCircleDetector — Class in package org.MARS.dynamics.collision.fine.sat
Detects collision between 2 circles.
CircleCircleDetector(circle1:org.MARS.view.shape:Circle, circle2:org.MARS.view.shape:Circle) — Constructor in class org.MARS.dynamics.collision.fine.sat.CircleCircleDetector
Creates a new CircleCircleDetector
CirclePolygonDetector — Class in package org.MARS.dynamics.collision.fine.sat
Detects a collision between a circle and a convex polygon.
CirclePolygonDetector(circle:org.MARS.view.shape:Circle, body:org.MARS.view.shape:Polygon) — Constructor in class org.MARS.dynamics.collision.fine.sat.CirclePolygonDetector
Creates a new CirclePolygonDetector
clamp(low, high, value) — Static method in class org.MARS.util.MathUtil
Clamp the given value withing the given boundaries
clearForces() — Method in interface org.MARS.dynamics.element.ISimulatable
Clears the force accumulation
clearForces() — Method in class org.MARS.dynamics.element.particle.SimpleParticle
Clears all forces
clearTorque() — Method in interface org.MARS.dynamics.element.IBody
Clears all torque
clearTorque() — Method in class org.MARS.dynamics.element.body.RigidBody
Clears any accumulated torque
clone(invert) — Method in class org.MARS.dynamics.force.spring.RigidBodyBungee
clone(invert) — Method in class org.MARS.dynamics.force.spring.RigidBodySpring
clone(invert) — Method in class org.MARS.dynamics.force.spring.Spring
Clone's a Spring for use with another element
clone() — Method in class org.MARS.math.Vector
Returns a Vector identical to the instance
coefficient — Property in class org.MARS.dynamics.force.Friction
coefficient of friction
collide() — Method in class org.MARS.robot.Robot
Print a message that the robot has collided with a wall or a heavy object
CollisionResolver — Class in package org.MARS.dynamics.collision
Monolithic rigid body impulse-based collision resolver

This class with its lone static method is used by the PhysicsEngine to resolve all found collisions for each iteration in its step.

CollisionType — Class in package org.MARS.dynamics.collision.enum
Enumerates collision types for factory mapping
collisionTypeID — Property in interface org.MARS.dynamics.element.ISimulatable
Gets the collision type id used to map element to an appropriate collision detector
collisionTypeID — Property in class org.MARS.dynamics.element.body.RigidBody
collisionTypeID — Property in class org.MARS.dynamics.element.particle.SimpleParticle
collisionTypeID — Property in class org.MARS.view.shape.Circle
collisionTypeID — Property in class org.MARS.view.shape.Polygon
collisionTypeID — Property in class org.MARS.view.shape.Shape
color — Property in class org.MARS.view.shape.Shape
Shape's color
connectedPorts — Property in class org.MARS.robot.control.IOPort
A list of all connected IO Ports
connectPorts(port:org.MARS.robot.control:IOPort) — Method in class org.MARS.robot.control.IOPort
Connect an IO port to the current port.
Contact — Class in package org.MARS.dynamics.collision
Depicts pairwise contact information

To resolve collisions, the CollisionResolver needs to know both bodies involved, the point of contact in world coordinates, and the collision normal (points outward from incident edge).

Contact(position:org.MARS.math:Vector, body1:org.MARS.dynamics.element:IBody, body2:org.MARS.dynamics.element:IBody, normal:org.MARS.math:Vector) — Constructor in class org.MARS.dynamics.collision.Contact
Creates a new contact
controller — Property in class org.MARS.robot.Robot
Robot's controller
copy(renderer:org.MARS.view:IRenderer) — Method in interface org.MARS.view.IRenderer
This method is used to swap renderers after one has already been defined - caution overriding.
copy(renderer:org.MARS.view:IRenderer) — Method in class org.MARS.view.MARSRenderer
This method is used to swap renderers after one has already been defined.
createDoubleSidedSpring(element1:org.MARS.dynamics.element:ISimulatable, element2:org.MARS.dynamics.element:ISimulatable, k, damp) — Static method in class org.MARS.dynamics.force.spring.Spring
Creates forces for both elements
createRectangle(width, height) — Static method in class org.MARS.util.ShapeUtil
Create a rectangle with the given width and height
createSymmetricPolygon(numVertices, size, theta) — Static method in class org.MARS.util.ShapeUtil
Create a symmetric polygon with the given number of vertices, size and rotation
createTextPanel(caller) — Static method in class org.MARS.util.IOUtil
Create the text panel in the caller Sprite object
createTwoWheelSystem(wheelRadius, maxSpeed, wheelDistance) — Static method in class org.MARS.util.LocomotionUtil
Create the system of two wheels on the same axis, such as required by the DifferentialSteering
cross(v:org.MARS.math:Vector) — Method in class org.MARS.math.Vector
Gets the cross product of the Vector and instance
crossScalar(scalar) — Method in class org.MARS.math.Vector
CubicBezierCurve — Class in package org.MARS.view.shape
Circular cubic bezier curve

NOTE: the class is not yet implemented

CubicBezierCurve(x, y, q, anchor:org.MARS.dynamics.element:IBody, color, alpha, lineColor, lineThickness, hashSize) — Constructor in class org.MARS.view.shape.CubicBezierCurve
Create a cubic bezier curve with the following parameters
CUBIC_BEZIER_CURVE — Constant static property in class org.MARS.dynamics.collision.enum.CollisionType
currentCanvas — Property in class org.MARS.view.MARSRenderer
curve — Property in class org.MARS.dynamics.collision.fine.sat.BezierDetector
A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z