ball.disp
Syntax
- v = ball.disp(bp)
- ball.disp(bp) = v
Get/set the ball displacement.
Returns: v - ball displacement vector Accepts: v - ball displacement vector Arguments: bp - ball pointer
Component Access
f = ball.disp
(bp)->x
ball.disp
(bp)->x
= f
- 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
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.disp(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.
Was this helpful? ... | 3DEC © 2019, Itasca | Updated: Feb 25, 2024 |