public Optional <Vector3> HitTestOne(Vector2 pointInView)
 {
     if (!MapWorker || !MapWorker.LocalizedMap)
     {
         return(Optional <Vector3> .CreateNone());
     }
     foreach (var point in MapWorker.LocalizedMap.HitTest(pointInView))
     {
         return(MapWorker.LocalizedMap.transform.TransformPoint(point));
     }
     return(Optional <Vector3> .CreateNone());
 }
Beispiel #2
0
        private Optional <RecordT> ConvertVisualIdxToPhysicalItem(int tbodyRowIdx)
        {
            var visualIdx = RelativeVisualIdxToAbsoluteVisualIdx(tbodyRowIdx);

            if (GetGroupForTrailerOrNull(visualIdx) != null)
            {
                return(Optional <RecordT> .CreateNone());
            }

            var groupRecordsCnt = GetExtraGroupRowsCount(visualIdx);

            return(Optional <RecordT> .CreateSome(_model.Items[visualIdx - groupRecordsCnt]));
        }