Class GeometricsKt
-
- All Implemented Interfaces:
public final class GeometricsKt
-
-
Method Summary
Modifier and Type Method Description final StringgetStr()final StringgetStr()final IntegergetX2()final IntegergetY2()final IntegergetArea()final StringgetStr2()final static Integercomponent1(Point $self)final static Integercomponent1(Rectangle $self)final static Integercomponent2(Point $self)final static Integercomponent2(Rectangle $self)final static GeoIntPointtoIntPoint(Point $self)final static Integercomponent3(Rectangle $self)final static Integercomponent4(Rectangle $self)final static Doublesim(Rectangle $self, Rectangle rect)final static AlignTypetestAlignment(Rectangle $self, Rectangle r, Double bias)Two rectangles are vertical collinear if they are intersects and have a padding, ignore the height TODO: not fully tested -
-
Method Detail
-
component1
final static Integer component1(Point $self)
-
component1
final static Integer component1(Rectangle $self)
-
component2
final static Integer component2(Point $self)
-
component2
final static Integer component2(Rectangle $self)
-
toIntPoint
final static GeoIntPoint toIntPoint(Point $self)
-
component3
final static Integer component3(Rectangle $self)
-
component4
final static Integer component4(Rectangle $self)
-
testAlignment
final static AlignType testAlignment(Rectangle $self, Rectangle r, Double bias)
Two rectangles are vertical collinear if they are intersects and have a padding, ignore the height TODO: not fully tested
-
-
-
-