VectorExtender.cs 522 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using MathNet.Numerics.LinearAlgebra.Single;
  7. namespace bbiwarg.DataSource
  8. {
  9. public static class VectorExtender
  10. {
  11. public static float x(this Vector v)
  12. {
  13. return v[0];
  14. }
  15. public static float y(this Vector v)
  16. {
  17. return v[1];
  18. }
  19. public static float z(this Vector v)
  20. {
  21. return v[2];
  22. }
  23. }
  24. }