Пример #1
0
 public void ToggleBone(int[] index, PhaseFunction phase)
 {
     for (int i = 0; i < index.Length; i++)
     {
         Bones[index[i]] = !Bones[index[i]];
     }
 }
Пример #2
0
 public LocalPhaseFunction(string name, int[] index, PhaseModule module)
 {
     Module     = module;
     Name       = name;
     Index      = index;
     Visiable   = true;
     LocalPhase = new PhaseFunction(module);
 }
Пример #3
0
 public override Module Initialise(MotionData data)
 {
     Data    = data;
     Inspect = true;
     RegularPhaseFunction = new PhaseFunction(this);
     InversePhaseFunction = new PhaseFunction(this);
     Variables            = new bool[Data.Source.Bones.Length];
     return(this);
 }
Пример #4
0
        public PhaseEvolution(PhaseFunction function)
        {
            Function = function;

            LowerBounds = new float[5];
            UpperBounds = new float[5];

            SetAmplitude(Amplitude);
            SetFrequency(Frequency);
            SetShift(Shift);
            SetOffset(Offset);
            SetSlope(Slope);

            Initialise();
        }
Пример #5
0
 public Task <byte> PhaseQueryAsync(PhaseFunction phaseFunction, BlockParameter blockParameter = null)
 {
     return(ContractHandler.QueryAsync <PhaseFunction, byte>(phaseFunction, blockParameter));
 }