kld-intersections icon indicating copy to clipboard operation
kld-intersections copied to clipboard

Question on `ShapeInfo.rectangle`

Open brettz9 opened this issue 3 years ago • 1 comments

With:

ShapeInfo.rectangle({x: 100, y: 150, width: 30, height: 10});

...I'm getting:

[
  0: Point2D {x: 100, y: 150}
  1: Point2D {x: 200, y: 300}
]

I would have expected the second point to be extrapolated from the height and width. Is this an error, or are the docs that mention mix-and-matching being ok not applicable here?

Thanks!

brettz9 avatar Jul 13 '21 23:07 brettz9

Hmm, that looks quite strange. I’m in the process of moving, so it will be a while before I can dive into this. I’ll get back to you as soon as I can.

Thanks for reporting this.

On Jul 13, 2021, at 4:37 PM, Brett Zamir @.***> wrote:

 With:

ShapeInfo.rectangle({x: 100, y: 150, width: 30, height: 10}); ...I'm getting:

[ 0: Point2D {x: 100, y: 150} 1: Point2D {x: 200, y: 300} ] I would have expected the second point to be extrapolated from the height and width. Is this an error, or are the docs that mention mix-and-matching being ok not applicable here?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

thelonious avatar Jul 17 '21 16:07 thelonious