MATH: Janitorial
This commit is contained in:
parent
29e4b87fdb
commit
78d4217ddb
14 changed files with 184 additions and 184 deletions
|
@ -46,7 +46,7 @@ void Matrix<3, 3>::transpose() {
|
|||
* http://clb.confined.space/MathGeoLib/nightly/docs/float3x3_LookAt.php
|
||||
*/
|
||||
void Matrix<3, 3>::buildFromTargetDir(const Math::Vector3d &modelForward, const Math::Vector3d &targetDirection,
|
||||
const Math::Vector3d &modelUp, const Math::Vector3d &worldUp) {
|
||||
const Math::Vector3d &modelUp, const Math::Vector3d &worldUp) {
|
||||
Math::Vector3d modelRight = Math::Vector3d::crossProduct(modelUp, modelForward);
|
||||
modelRight.normalize();
|
||||
Math::Vector3d worldRight = Math::Vector3d::crossProduct(worldUp, targetDirection);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue