MCPcopy Create free account
hub / github.com/Prograda/Skybolt / getOrientationFromDirection

Function getOrientationFromDirection

src/Skybolt/SkyboltSim/SimMath.cpp:15–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace sim {
14
15Matrix3 getOrientationFromDirection(const Vector3& direction)
16{
17 Vector3 tangent, bitangent;
18 math::getOrthonormalBasis(direction, tangent, bitangent);
19 return Matrix3(direction, tangent, bitangent);
20}
21
22double posInfinity()
23{

Callers 1

ParticleEmitterMethod · 0.85

Calls 1

getOrthonormalBasisFunction · 0.50

Tested by

no test coverage detected