/// <summary>
 /// Space the given objects horizontally, starting at the given initial position and
 /// with the given amount of space between each object.
 /// </summary>
 /// <param name="spacing"></param>
 /// <param name="initialPosition"></param>
 /// <param name="direction"></param>
 /// <param name="coordinateSpace"></param>
 /// <param name="positionals"></param>
 public static void SpaceHorizontally( float spacing
                                     , Vector2 initialPosition
                                     , HorizontalSpacingDirection direction = HorizontalSpacingDirection.Left
                                     , CoordinateSpace coordinateSpace = CoordinateSpace.TargetSpace
                                     , params IPositional[] positionals )
 {
     Vector2 dir = new Vector2(1, 0) * (direction == HorizontalSpacingDirection.Right ? 1 : -1);
     SpaceInDirection(spacing, initialPosition, dir, coordinateSpace, positionals);
 }
Exemple #2
0
        /// <summary>
        /// Space the given objects horizontally, starting at the given initial position and
        /// with the given amount of space between each object.
        /// </summary>
        /// <param name="spacing"></param>
        /// <param name="initialPosition"></param>
        /// <param name="direction"></param>
        /// <param name="coordinateSpace"></param>
        /// <param name="positionals"></param>
        public static void SpaceHorizontally(float spacing
                                             , Vector2 initialPosition
                                             , HorizontalSpacingDirection direction = HorizontalSpacingDirection.Left
                                             , CoordinateSpace coordinateSpace      = CoordinateSpace.TargetSpace
                                             , params IPositional[] positionals)
        {
            Vector2 dir = new Vector2(1, 0) * (direction == HorizontalSpacingDirection.Right ? 1 : -1);

            SpaceInDirection(spacing, initialPosition, dir, coordinateSpace, positionals);
        }