Function applyInverse

  • Get a new position with the inverse of the current transformation applied. Can be used to go from the world coordinate space to a child's coordinate space. (e.g. input)

    Parameters

    • parentMatrix: DOMMatrix
    • pos: Point | PointLike

      The origin

    • OptionalnewPos: Point

      The point that the new position is assigned to (allowed to be same as input)

    Returns Point

    The new point, inverse-transformed through this matrix