i has a plane whose equation is ax + by-z + d = 0. therefore, its normal vector is (a, b-1). Now I need to project the vector onto the xy plane in order to calculate its direction from the north axis (I think that the Y axis is here. Please help me get the projected vector. Thanks.
I think you are looking for dot product . Finding the direction the plane is in is pretty easy.
// generic code, actual code depends on your engine. // BasePlane.GetNormal() would equal to (0,0,1) for the X/Y plane float dir = YourPlane.GetNormal().Dot(BasePlane.GetNormal());
1, , , . -1, . 0 , . , .
1
-1
0
Source: https://habr.com/ru/post/1790115/More articles:How to make a request in the sphinx, like the usual LIKE operator "% somestring%", - mysqlCreate your own port for printing in .NET. - c #Converting Keystore - Windows-my to jks - javaMySQL Socket refuses to connect after several thousand consecutive connections - mysqloptimization - reading a file from disk using the Windows API - optimizationIO in another thread blocking my UI thread? - javaDatabind read-only dependency property for ViewModel in Xaml - data-bindingHow do you log php errors with CakePHP when debugging is 0? - phpC ++ varargs / variadic with two types of arguments - c ++dataGridView1 connect to my universal list? - c #All Articles