Rect

constructor(@NonNull p1: Vector2d, @NonNull p2: Vector2d, @NonNull unit: Distance)

Create a new Rect based on two points.

Parameters

p1

point 1

p2

point 2

unit

the unit used for point 1 and 2