Exemple #1
0
 public void setEndPoint(Vector2 a_endPoint)
 {
     m_endPosition = new CartesianCoordinate(a_endPoint);
     m_endPosition.setParentPositionWithoutMoving(m_startPosition);
     m_endPosition.plusXWith(36);
     m_line.setEndPoint(m_endPosition);
     m_lenght = m_line.getStartPoint().getDistanceTo(m_line.getEndPoint());
 }
Exemple #2
0
 public void setEndPoint(Position a_position)
 {
     m_endPosition = a_position;
     m_endPosition.setParentPositionWithoutMoving(m_startPosition);
     m_endPosition.plusXWith(36);
     m_line.setEndPoint(m_endPosition);
     m_lenght = m_line.getStartPoint().getDistanceTo(m_line.getEndPoint());
 }