Home > @taiyuuki/utils > MathRange > cross
MathRange.cross() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
获取两个区间的交集,如果不存在交集则返回null
Signature:
typescript
cross(other: MathRange): MathRange | null;
cross(other: MathRange): MathRange | null;
Parameters
Parameter | Type | Description |
---|---|---|
other | MathRange |
Returns:
MathRange | null
交集,结果是开区间。