function goReverse()

Asked by lip

hello
i want know what does function goReverse() do in yade, such as code below:

bool Ig2_Polyhedra_Polyhedra_ScGeom::goReverse(const shared_ptr<Shape>& shape1, const shared_ptr<Shape>& shape2, const State& state1, const State& state2, const Vector3r& shift2, const bool& force, const shared_ptr<Interaction>& interaction) {
 return go(shape1,shape2,state2,state1,-shift2,force,interaction);
}

can somebody explain it for me,i would appreciate it if you can help me

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#1

Hi,
goReverse() boils down to go() in that example, as the code suggests, and most likely it's never called.
In other cases it is used to swap arguments of go().
Bruno

Can you help with this problem?

Provide an answer of your own, or ask lip for more information if necessary.

To post a message you must log in.