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.
34 lines
1.2 KiB
34 lines
1.2 KiB
import type { EdgeData } from '../spec';
|
|
import type { ElementDatum, Point, Vector2, Vector3 } from '../types';
|
|
/**
|
|
* <zh/> 判断是否为边数据
|
|
*
|
|
* <en/> judge whether the data is edge data
|
|
* @param data - <zh/> 元素数据 | <en/> element data
|
|
* @returns - <zh/> 是否为边数据 | <en/> whether the data is edge data
|
|
*/
|
|
export declare function isEdgeData(data: Partial<ElementDatum>): data is EdgeData;
|
|
/**
|
|
* <zh/> 判断是否为二维向量
|
|
*
|
|
* <en/> Judge whether the vector is 2d
|
|
* @param vector - <zh/> 向量 | <en/> vector
|
|
* @returns <zh/> 是否为二维向量 | <en/> whether the vector is 2d
|
|
*/
|
|
export declare function isVector2(vector: Point): vector is Vector2;
|
|
/**
|
|
* <zh/> 判断是否为三维向量
|
|
*
|
|
* <en/> Judge whether the vector is 3d
|
|
* @param vector - <zh/> 向量 | <en/> vector
|
|
* @returns <zh/> 是否为三维向量 | <en/> whether the vector is 3d
|
|
*/
|
|
export declare function isVector3(vector: Point): vector is Vector3;
|
|
/**
|
|
* <zh/> 判断是否为点
|
|
*
|
|
* <en/> Judge whether the point is valid
|
|
* @param p - <zh/> 点 | <en/> point
|
|
* @returns <zh/> 是否为点 | <en/> whether the point is valid
|
|
*/
|
|
export declare function isPoint(p: any): p is Point;
|
|
|