1234567891011121314151617181920212223242526 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- namespace CSVReader
- {
- public class SensorObject
- {
- public int ID;
- public Vector3 Pos;
- public Vector3 Rot;
- public SensorObject(int id, float posX, float posY, float posZ, float rotX, float rotY, float rotZ)
- {
- this.ID = id;
- Pos = new Vector3(posX, posY, posZ);
- Rot = new Vector3(rotX, rotY, rotZ);
- }
- public bool Equals(SensorObject comSen)
- {
- return this.ID == comSen.ID && this.Pos.x == comSen.Pos.x && this.Pos.y == comSen.Pos.y && this.Pos.z == comSen.Pos.z &&
- this.Rot.x == comSen.Rot.x && this.Rot.y == comSen.Rot.y && this.Rot.z == comSen.Rot.z;
- }
- }
- }
|