/// <summary> /// Initializes a new instance of the <see cref="RelativePositionProperty"/> class. /// </summary> /// <param name="mode">Mode.</param> // <param name="_name">property name</param> /// <param name="_targets">property targets. They have no meaning for this property, but we add them anyway.</param> /// <param name="_satXPoints">x points of the satisfaction linear spline</param> /// <param name="_satYPoints">y points of the satisfaction linear spline</param> public CLRelativePositionProperty(RelativePositionMode mode, string _name, List <CLTarget> _targets, List <float> _satXPoints, List <float> _satYPoints) : base(_name, _targets) { satFunction = new CLLinearSplineSatFunction(_satXPoints, _satYPoints); cost = 1.5f; positionType = mode; }
/// <summary> /// Initializes a new instance of the <see cref="RelativePositionProperty"/> class. /// </summary> /// <param name="mode">Mode.</param> // <param name="_name">property name</param> /// <param name="_targets">property targets. They have no meaning for this property, but we add them anyway.</param> /// <param name="_satFunction">sat function</param> public CLRelativePositionProperty(RelativePositionMode mode, string _name, List <CLTarget> _targets, CLSatFunction _satFunction) : base(_name, _targets, _satFunction) { cost = 1.5f; positionType = mode; }