Class LinearArrangement

Hierarchy

Constructors

Properties

axis: Vector3
jitter: boolean
margin: Vector3
maxJitterOffset: Vector3
maxJitterRotation: Rotation
minJitterOffset: Vector3
minJitterRotation: Rotation
offAxis: Vector3
offset: Vector3
pivot: Vector3
reverse: boolean
DEFAULT_MAX_JITTER_OFFSET: Vector3 = ...
DEFAULT_MAX_JITTER_ROTATION: Rotation = ...

Methods

  • Generates the transformations for a bunch of child objects, given the bounds of the containing object.

    Parameters

    • boundsArray: Bounds[]

      Axis aligned offsets and sizes of each child object.

    • Optional parentLocalBounds: Bounds

      Offset and size of the containing object.

    • Optional jitterSeed: string

      Seed used to deterministically apply jitter to the generated arrangement.

    Returns ITransform[]

    Array of generated transformations, one for each element in boundsArray.

  • When implemented in a deriving class, generates the base transformations for an array of objects. The returned array must contain exactly one element for each item in boundsArray. There's no need to handle margin or jitter here, those features are implemented in the base class.

    Parameters

    • boundsArray: Bounds[]

      Axis aligned offsets and sizes of each child object.

    Returns ITransform[]

Generated using TypeDoc