MCPcopy Create free account
hub / github.com/EricLengyel/Terathon-Math-Library / MakeRotationZ

Method MakeRotationZ

TSMatrix4D.cpp:631–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

629}
630
631Transform3D Transform3D::MakeRotationZ(float angle)
632{
633 Vector2D v = CosSin(angle);
634
635 return (Transform3D( v.x, -v.y, 0.0F, 0.0F,
636 v.y, v.x, 0.0F, 0.0F,
637 0.0F, 0.0F, 1.0F, 0.0F));
638}
639
640Transform3D Transform3D::MakeRotation(float angle, const Bivector3D& axis)
641{

Callers

nothing calls this directly

Calls 2

CosSinFunction · 0.85
Transform3DClass · 0.70

Tested by

no test coverage detected