add scalarTripleProduct method to Vector3d
change position getter to getPosition(result) method