Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FlipCalculation

Class representing mathematical methods for calculating page position (rotation angle, clip area ...)

Hierarchy

  • FlipCalculation

Index

Constructors

constructor

Methods

calc

  • calc(localPos: Point): boolean
  • The main calculation method

    Parameters

    • localPos: Point

      Touch Point Coordinates (relative active page!)

    Returns boolean

    True - if the calculations were successful, false if errors occurred

getActiveCorner

  • getActiveCorner(): Point

getAngle

  • getAngle(): number

getBottomClipArea

  • getBottomClipArea(): Point[]

getBottomPagePosition

  • getBottomPagePosition(): Point

getCorner

getDirection

getFlippingClipArea

  • getFlippingClipArea(): Point[]

getFlippingProgress

  • getFlippingProgress(): number

getPosition

getRect

getShadowAngle

  • getShadowAngle(): number

getShadowStartPoint

  • getShadowStartPoint(): Point

Generated using TypeDoc