ball.spin

Syntax

v = ball.spin(p)
ball.spin(bp) = v

Get/set the ball angular velocity.

Returns:v - ball angular velocity vector
Accepts:v - ball angular velocity vector
Arguments:bp - ball pointer

Component Access

f = ball.spin (bp)->x
ball.spin (bp)->x = f

f = ball.spin.x(bp)
ball.spin.x(bp) = f

Get/set the \(x\)-component of the ball angular velocity.

Returns:f - \(x\)-component of the ball angular velocity vector
Accepts:f - \(x\)-component of the ball angular velocity vector
Arguments:bp - ball pointer

Access other vector components (\(y\), \(z\) (3D ONLY)) by substituting the component name where \(x\) appears above. See Member Access Operator for information about accessing members from data types using ->.

Deprecated Component Access

Component access by adding an optional integer in the function arguments (e.g., f = ball.spin(bp,3)) is deprecated. It remains available but will not be supported in future versions. See Component Access with Integers in FISH on the Deprecated Commands and FISH page for details.

This is hidden. Added to include remaining tensor component access functions for inline help.

f = ball.spin.y(bp)
f = ball.spin.z(bp) (3D ONLY)