Skip to content

Commit

Permalink
change direction view calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Kraus committed Feb 6, 2018
1 parent 1bd3854 commit 31fea7d
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,8 @@ protected final Stream<ITerm> staticliteral( final IObject<?> p_object )
EDirection.byAngle(
CMath.angle(
// view straight forward
m_position.copy().assign( new DenseDoubleMatrix1D( new double[]{0, 1} ), DoubleFunctions.plus )
// get vector in view direction
.assign( m_position, DoubleFunctions.minus ),
// get from myself to other object
new DenseDoubleMatrix1D( new double[]{0, 1} ),
// relative direction to other vehicle
p_object.position().copy().assign( m_position, DoubleFunctions.minus ) )
).toString().toLowerCase( Locale.ROOT )
)
Expand Down

0 comments on commit 31fea7d

Please sign in to comment.