fixed sin vs cos usage for x and y components of displacement