public Vector2 getCollisionPoint(Segment2D other)
	{
		Vector2 p = getIntersectionPoint(other);
		if (p == null)
			return null;
		if ((p.x >= start.x && p.x <= end.x) || (p.x >= end.x && p.x <= start.x))
		{
			if ((p.y >= start.y && p.y <= end.y) || (p.y >= end.y && p.y <= start.y))
				return p;
		}
		return null;
	}