Closed minystreem56 closed 1 month ago
point.X
I tried that, but it did not work
I can't really believe that
Thats really werid. I can try it, but I swear it didn't work. Thanks!
No worries. I would also close the issue once you figure this out, perhaps writing a comment for future reference
Werid, I just tried that and I got this error:
error CS1061: 'Point2D?' does not contain a definition for 'X' and no accessible extension method 'X' accepting a first argument of type 'Point2D?' could be found (are you missing a using directive or an assembly reference?)
Ok so it works, but I am using the IntersectWith function which returns a nullable point2d, so the problem may lie with the fact that it is nullable?
That's what got me worried in your previous reply, that the Point2D
was nullable. No, the IntersectWith
should indeed return nullable, since there is also the possibility, that no intersection occurs.
I am guessing you are using Line2D.IntersectWith
, so when the lines are parallel there is no intersection.
@minystreem56 Would you mind if I close this issue now?
No, I do not mind
On Fri, Jul 5, 2024, 6:08 AM jkalias @.***> wrote:
@minystreem56 https://github.com/minystreem56 Would you mind if I close this issue now?
— Reply to this email directly, view it on GitHub https://github.com/mathnet/mathnet-spatial/issues/240#issuecomment-2210681364, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV5367UPPKWYV63V6E3TUIDZKZ5EBAVCNFSM6AAAAABI4Z77IKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJQGY4DCMZWGQ . You are receiving this because you were mentioned.Message ID: @.***>
I can't figure out how to get the x and y cordnets of a point2d, I have tried point.getX(), point.getx(), point.x, point.X, getX(point), getx(point), but none of them work, any ideas?