/// <summary> /// Initializes a new instance of the <see cref="ColoredTextList_Distance"/> class. This version /// generates a ColoredTextList containing the distance from the camera's focal plane to the provided /// point in world space. /// </summary> /// <param name="point">The point in world space..</param> /// <param name="format">The format.</param> public ColoredTextList_Distance(Vector3 point, string format = Constants.FormatFloat_1DpMax) { //TODO calculate from Data.Position and <code>static GetSelected()<code> //if(nothing selected) return empty float distance = point.DistanceToCamera(); _list.Add(new ColoredText(format.Inject(distance))); }