Computing a Basis

Computing a Basis

admin No Comment

Given a normalized 3D vector, here’s an efficient method for computing a full basis. The computed basis is axis aligned if the input vector is axis aligned.
void ComputeBasis(const Vec& a, Vec* b, Vec* c)
// Suppose vector a has all equal components and is a unit vector: a = (s, s, s)
// Then 3*s*s = 1, s = sqrt(1/3) = 0.57735. This means that at least one component of a
// unit vector must be greater or equal to 0.57735.

Path of Exile: Atlas of Worlds Official Trailer
Thursday January 12, 2017

The Path of Exile: Atlas of World Official Trailer shows off some cinematic cut scenes and game play that you can expect to see in the latest expansion for the action role playing game Path of Exile. The expansion was released in September 2016 and includes 30 new maps, 19 new bosses which equate to […]

if (Abs(a.x) >= 0.57735f)
b->Set(a.y, -a.x, 0.0f);
b->Set(0.0f, a.z, -a.y);

⏰ 1 Week Left to Purchase Tickets for #G4C18 ⏰
Thursday June 21, 2018

  The Games for Change Festival is only 1 week away! Register now to snag the last few spots in reserved sessions and a ticket to AU & HEVGA’s networking happy hour.  Join AU & HEVGA’s Happy Hour Receive an invitation to join #G4C18’s Happy Hour with American University Game Lab, Higher Education Video Game Alliance (HEVGA) and […]

b = Normalize(b);
*c = Cross(a, *b);
In SSE land you can eliminate the branch using a select operation.

Võ đài tranh đấu
Sunday October 28, 2018

Game Vo dai tranh dau – Chơi game Võ đài tranh đấu Pro Wrestling Action online miễn phí mới nhất cho android iphone ios trên máy tính pc 24h y8 2018 Thể loại: game the thao Giới thiệu game Vo dai tranh dau Game Võ đài tranh đấu hay còn có tên gọi Pro Wrestling Action […]