当前位置:网站首页>检查点是否在矩形内
检查点是否在矩形内
2022-08-01 23:03:00 【紫微前端】
JavaScript version
const isInside = (point, rect) => point.x > rect.left && point.x < rect.right && point.y > rect.top && point.y < rect.bottom;TypeScript version
interface Point {
x: number;
y: number;
}
interface Rect {
bottom: number;
left: number;
top: number;
right: number;
}
const isInside = (point: Point, rect: Rect): boolean => point.x > rect.left && point.x < rect.right && point.y > rect.top && point.y < rect.bottom;边栏推荐
猜你喜欢

Ten years after graduation, financial freedom: those things that are more important than hard work, no one will ever teach you

xctf attack and defense world web master advanced area webshell

数据分析04

Small application project works WeChat stadium booking applet graduation design of the finished product (1) the development profile

小程序毕设作品之微信体育馆预约小程序毕业设计成品(1)开发概要

Go 微服务开发框架DMicro的设计思路

小程序毕设作品之微信美食菜谱小程序毕业设计成品(5)任务书

美赞臣EDI 940仓库装运订单详解

SRv6 L3VPN的工作原理

威纶通触摸屏如何打开并升级EB8000旧版本项目并更换触摸屏型号?
随机推荐
xctf attack and defense world web master advanced area web2
Use Jenkins for continuous integration, this knowledge point must be mastered
选择合适的 DevOps 工具,从理解 DevOps 开始
毕业作业
leetcode 204. Count Primes 计数质数 (Easy)
Go 微服务开发框架DMicro的设计思路
三、mysql 存储引擎-建库建表操作
别看了,这就是你的题呀
自建 Prometheus 采集腾讯云容器服务监控数据最佳实践
ping no reply
SQL29 Calculate the average next day retention rate of users
基于JAX的激活函数、softmax函数和交叉熵函数
ROS2初级知识(8):Launching启动多节点
excel vertical to horizontal
部门项目源码分享
How to add a game character to a UE4 scene
【Verilog刷题篇】硬件工程师从0到入门1|基础语法入门
毫秒级!千万人脸库快速比对,上亿商品图片检索,背后的极速检索用了什么神器?
10年稳定性保障经验总结,故障复盘要回答哪三大关键问题?|TakinTalks大咖分享
SQL Server (design database--stored procedure--trigger)