You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
540 B
27 lines
540 B
import { PointTuple } from '../types';
|
|
/**
|
|
* @fileOverview quad
|
|
* @author shiwu.wyy@antfin.com
|
|
*/
|
|
type QuadProps = {
|
|
xmid: number;
|
|
ymid: number;
|
|
length: number;
|
|
massCenter?: PointTuple;
|
|
mass?: number;
|
|
};
|
|
export default class Quad {
|
|
xmid: number;
|
|
ymid: number;
|
|
length: number;
|
|
massCenter: PointTuple;
|
|
mass: number;
|
|
constructor(params: QuadProps);
|
|
getLength(): number;
|
|
contains(x: number, y: number): boolean;
|
|
NW(): Quad;
|
|
NE(): Quad;
|
|
SW(): Quad;
|
|
SE(): Quad;
|
|
}
|
|
export {};
|
|
|