| 476 | } |
| 477 | |
| 478 | float Float3::Distance(const Float3& a, const Float3& b) |
| 479 | { |
| 480 | XMVECTOR x = a.ToSIMD(); |
| 481 | XMVECTOR y = b.ToSIMD(); |
| 482 | XMVECTOR length = XMVector3Length(XMVectorSubtract(x, y)); |
| 483 | return XMVectorGetX(length); |
| 484 | } |
| 485 | |
| 486 | float Float3::Length(const Float3& v) |
| 487 | { |