private int GetHardwareLinkValue(Link l, int index)
		{
			float t = (l.Value - l.MinValue) / (l.MaxValue - l.MinValue);
			float max = (float)Assigments[index].Maximum;
			float min = (float)Assigments[index].Minimum;
			float s = MathHelper.Lerp(max, min, t);
			return (int)s;
		}
Beispiel #2
0
		private void ReloadLinkModel(Link link)
		{
			if (!String.IsNullOrEmpty(link.ModelPath))
			{
				link.Model = ContentManager.Load<Model>(link.ModelPath);
			}
		}