Artemis.Engine.LayoutDesigner.SpaceVertically C# (CSharp) Метод

SpaceVertically() публичный статический Метод

Space the given objects vertically, starting at the given initial position and with the given amount of space between each object.
public static SpaceVertically ( float spacing, Vector2 initialPosition, VerticalSpacingDirection direction = VerticalSpacingDirection.Down, CoordinateSpace coordinateSpace = CoordinateSpace.TargetSpace ) : void
spacing float
initialPosition Microsoft.Xna.Framework.Vector2
direction VerticalSpacingDirection
coordinateSpace CoordinateSpace
Результат void
        public static void SpaceVertically( float spacing
                                          , Vector2 initialPosition
                                          , VerticalSpacingDirection direction = VerticalSpacingDirection.Down
                                          , CoordinateSpace coordinateSpace = CoordinateSpace.TargetSpace
                                          , params IPositional[] positionals )
        {
            // NOTE: Should this really be "world down" (i.e. decreasing the y coordinates), which is
            // visually moving up, or "visual down" (i.e. increasing the y coordinate)?
            Vector2 dir = new Vector2(0, 1) * (direction == VerticalSpacingDirection.Down ? 1 : -1);
            SpaceInDirection(spacing, initialPosition, dir, coordinateSpace, positionals);
        }