/// <summary> /// 복사 생성자 /// </summary> /// <param name="other">복사할 다른 개체</param> public SensorValue(SensorValue other) { Acceleration = new SensorPoint(other.Acceleration.x, other.Acceleration.y, other.Acceleration.z); AngularVelocity = new SensorPoint(other.AngularVelocity.x, other.AngularVelocity.y, other.AngularVelocity.z); Position = new SensorPoint(other.Position.x, other.Position.y, other.Position.z); Status = other.Status; }
/// <summary> /// 센서의 값 (float 리스트) 를 자동으로 3개의 벡터로 변환 /// </summary> /// <param name="Datas">입력할 (float 리스트)</param> public SensorValue(float[] Datas) { Acceleration = new SensorPoint(Datas[0], Datas[1], Datas[2]); AngularVelocity = new SensorPoint(Datas[3], Datas[4], Datas[5]); Position = new SensorPoint(Datas[6], Datas[7], Datas[8]); Status = SV_Status.NA; }
/// <summary> /// 기본 생성자 /// </summary> public SensorValue() { Acceleration = new SensorPoint(0, 0, 0); AngularVelocity = new SensorPoint(0, 0, 0); Position = new SensorPoint(0, 0, 0); Status = SV_Status.NA; }
public SensorPoint(SensorPoint Other) { x = Other.x; y = Other.y; z = Other.z; }