MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / Vec_Normalise

Method Vec_Normalise

extensions/olcPGEX_Graphics3D.h:486–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484 }
485
486 olc::GFX3D::vec3d olc::GFX3D::Math::Vec_Normalise(olc::GFX3D::vec3d &v)
487 {
488 float l = Vec_Length(v);
489 return { v.x / l, v.y / l, v.z / l };
490 }
491
492 olc::GFX3D::vec3d olc::GFX3D::Math::Vec_CrossProduct(olc::GFX3D::vec3d &v1, olc::GFX3D::vec3d &v2)
493 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected