Bitbybit Docs
    Preparing search index...

    Class ScaleFromCenterDto<T> (Inputs.OCCT)

    A shape, a factor and a center for transforms.scaleFromCenter, which scales uniformly about the center.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Constructors

    Properties

    shape: T

    The shape to scale; it stays as it is and a scaled copy comes back.

    undefined
    
    factor?: number

    The uniform scale factor; 2 doubles every size, 0.5 halves it, and a negative factor also mirrors the shape through the center. It must not be 0.

    1
    

    0.1

    The point that stays in place while everything else scales away from or toward it.

    [0, 0, 0]