@twinfinity/core
    Preparing search index...

    Class IconSizeCalculator

    Calculates icon size. Used by IconHandler to calculate the size a icon shall be rendered with.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    options: DeepImmutable<Required<IconSizeOptions>>

    Methods

    • Get icon size

      Parameters

      • iconLength: number

        side of the icon

      • camera: Camera

        camera the icon will be rendered with

      • renderTargetSize: ISize

        size of the render target that the icon will be rendered to.

      Returns number

      Size of icon to use when rendering.