示例#1
0
        private ToolPreviewOutcome Preview(IWorldView worldView, IToolBehavior toolBehavior, IToolBrush toolBrush, IEnumerable <Vector> inputPositions)
        {
            IEnumerable <Vector> toolPositions = toolBrush.ComputePositions(inputPositions);

            return(toolBehavior.Preview(worldView, toolPositions));
        }
示例#2
0
 private static bool Validate(IWorldView worldView, IToolBehavior toolBehavior, IEnumerable <Vector> toolPositions)
 {
     return(toolBehavior.Preview(worldView, toolPositions).IsPossible());
 }