Tag：straight line

Time：2020129
We describeda^2 + b^2 = c^2All integer solutions ofa，b，c, ifc^2Divide by this equation (\frac{a}{c})^2 + (\frac{b}{c})^2 = 1 So rational numbers are right(\frac{a}{c},\frac{b}{c})It’s an equationx^2 + y^2 = 1The solution ofequationx^2 + y^2 = 1Represents a circle C with a center at (0, 0) radius of 1. How to find the points on circle C […]

Time：20201120
The maximum number of points on a line difficultydifficulty Given a twodimensional plane, there are n points on the plane, find the maximum number of points on the same line. Example 1:Input: [[1,1],[2,2],[3,3]]Output: 3Explanation: Example 2:Input: [[1,1],[3,2],[5,3],[4,1],[2,3],[1,4]]Output: 4Explanation: thinking First, you need to make sure that two points are on a straight line – that […]

Time：2020111
Introduction stayCollision Detection ：RectangleThis paper mainly introduces the rectangle related collision detection, and then looks at the situation of the straight line. The following examples are not checked for compatibility and are recommended to be viewed in the latest chrome browsers. Origin My GitHub Line/Point This isSample page。 Line and pointObserve the following figure: It […]

Time：2020715
Recently, I encountered a problem. I need to calculate the distance between the point in the plane and the straight line. I found that the mathematical knowledge was returned to the teacher. After Du Niang, I found the calculation method, which is hereby recorded. Calculation formula from point to line: Through the formula derivation, the […]

Time：2020514
Canvas. Since 2.9.0, a new canvas 2D interface is supported (the type attribute needs to be specified), and the same layer rendering is supported. The original interface is no longer maintained. The application of small program development drawing class is based on canvas. For the existing canvas application on H5, to migrate to the small […]

Time：20191216
demand This is the requirement extracted from a project. The general idea is: through obtaining a series of point information of backend personnel, simulate the action process of personnel in the frontend for a period of time. Our developers first thought of the idea is to get the information of the point list, each two […]

Time：20191117
This article was first published in the prophet community. The original link: https://xz.aliyun.com/t/6295 Mathematical foundation Parallel lines in Riemannian geometry There are five postulates in Euclid’s original geometry: If there are two different points, we can make and only make a straight line. The finite line can be extended arbitrarily. A circle can be made […]