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()); }
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()); }