This is often the case when you write code. If you get data from the network or copy strings, but you cannot get data, the data is always empty, however, if I add a latency or sleep, the data will be displayed normally. This is annoying, but in many cases it cannot be quickly and effectively solved in a short time, making projects that seem to have made money, because of the delay of time, the cost is increased, and sometimes it cannot be well solved even when the project expires, I think this problem is often one of the most important factors that the cost development team cannot well establish in the sales staff for timely delivery of work. Some developers are confused and think of some bad ideas, however, sales or customers cannot work out, but it is not a good method. Some are hard-winded and cannot be effectively solved, so customers and bosses can beat each other and treat similar problems, the test is the wisdom to cope with and the rich experience of developers, or clever thinking! In many cases, smart programmers are able to excel in dealing with such problems! As a developer, there is a high chance of such problems. It is inevitable to stay up late and work overtime!
To avoid errors, you must pay attention to each of your codes and go deep into every detail of your code!
D3dxplaneintersectline Function
Find the intersection of a straight line and a plane.
Definition:
D3dxvector3 * winapi d3dxplaneintersectline (
D3dxvector3 * pout, const d3dxplane * PP, const d3dxvector3 * pv1, const d3dxvector3 * pv2); parameters:
Pout
[In, out] The vector pointing to the d3dxvector3 structure is the vector of the straight intersection between the plane and the line.
PP
[In] A plane equation pointing to the d3dxplane structure.
Pv1
[In] the starting line vector pointing to the d3dxvector3 structure.
Pv2
[In] points to the linear endpoint vector of the d3dxvector3 structure.
Return Value:
Point to the intersection vector of the d3dxvector3 structure plane and the straight line.
Note:
If a straight line is parallel to a plane, null is returned.
The Return Value of the function is the same as that of the pout parameter. In this way, the d3dxplaneintersectline function can be used as a parameter of other functions.
Function information:
Header
D3dx9math. h
Import library
D3dx9. Lib