private Quaternion _ReflectQ(Quaternion rot, Axis axisValue, Vector3 planeNormal) { switch (axisValue) { case Axis.XY: return(QUtil.Reflect_XY(rot, planeNormal)); case Axis.XZ: return(QUtil.Reflect_XZ(rot, planeNormal)); case Axis.YZ: return(QUtil.Reflect_YZ(rot, planeNormal)); default: Dbg.LogErr("MirrorCtrl._ReflectQ: unexpected axisValue: {0}", axisValue); return(Quaternion.identity); } }
private Quaternion _ReflectQ(Quaternion oldQ, Axis axisValue, Vector3 planeNormal) { switch (axisValue) { case Axis.XY: return(QUtil.Reflect_XY(oldQ, planeNormal)); case Axis.XZ: return(QUtil.Reflect_XZ(oldQ, planeNormal)); case Axis.YZ: return(QUtil.Reflect_YZ(oldQ, planeNormal)); default: Dbg.LogErr("AnimMirrorEditorWindow._ReflectQ: unexpected axisValue: {0}", axisValue); return(Quaternion.identity); } }