SensorObject.cs 783 B

1234567891011121314151617181920212223242526
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace CSVReader
  5. {
  6. public class SensorObject
  7. {
  8. public int ID;
  9. public Vector3 Pos;
  10. public Vector3 Rot;
  11. public SensorObject(int id, float posX, float posY, float posZ, float rotX, float rotY, float rotZ)
  12. {
  13. this.ID = id;
  14. Pos = new Vector3(posX, posY, posZ);
  15. Rot = new Vector3(rotX, rotY, rotZ);
  16. }
  17. public bool Equals(SensorObject comSen)
  18. {
  19. return this.ID == comSen.ID && this.Pos.x == comSen.Pos.x && this.Pos.y == comSen.Pos.y && this.Pos.z == comSen.Pos.z &&
  20. this.Rot.x == comSen.Rot.x && this.Rot.y == comSen.Rot.y && this.Rot.z == comSen.Rot.z;
  21. }
  22. }
  23. }