ball.disp

Syntax

Vector Access

v = ball.disp(bp<,i>)
ball.disp(bp<,i>) = v

Get/set the ball displacement.

Returns:

v - ball displacement vector or component

Accepts:

v - ball displacement vector or component

Arguments:

bp - ball pointer

i - optional vector component

Component Access

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

Get/set the x-component of the ball displacement.

Returns:f - x-component of the ball displacement vector
Accepts:f - x-component of the ball displacement vector
Arguments:bp - ball pointer
f = ball.disp.y(bp)
ball.disp.y(bp) = f

Get/set the y-component of the ball displacement.

Returns:f - y-component of the ball displacement vector
Accepts:f - y-component of the ball displacement vector
Arguments:bp - ball pointer
f = ball.disp.z(bp)
ball.disp.z(bp) = f (3D ONLY)

Get/set the z-component of the ball displacement.

Returns:f - z-component of the ball displacement vector
Accepts:f - z-component of the ball displacement vector
Arguments:bp - ball pointer