Gjsify LogoGjsify Logo

A #VipsRect is a rectangular area of pixels. This is a struct for performing simple rectangle algebra.

record

Hierarchy

  • Rect

Index

Constructors

Properties

height: number

height of rectangle

field
left: number

left edge of rectangle

field
top: number

top edge of rectangle

field
width: number

width of rectangle

field
name: string

Methods

  • includespoint(x: number, y: number): boolean
  • Does r contain point (x, y)?

    Parameters

    • x: number

      position to test for

    • y: number

      position to test for

    Returns boolean

  • isempty(): boolean
  • marginadjust(n: number): void
  • Enlarge r by n. +1 means out one pixel.

    Parameters

    • n: number

      enlarge by

    Returns void

  • normalise(): void
  • Make sure width and height are >0 by moving the origin and flipping the rect.

    Returns void

  • Do r1 and r2 have a non-empty intersection?

    Parameters

    Returns boolean

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method