C# Class Ocronet.Dynamic.Rect

ファイルを表示 Open project: nickun/OCRonet

Public Properties

Property Type Description
x0 int

Public Methods

Method Description
Area ( ) : int
Aspect ( ) : float
Centricity ( Rect other ) : float
Contains ( Point p ) : bool
Contains ( int x, int y ) : bool
CreateEmpty ( ) : Rect
DilatedBy ( int dx0, int dy0, int dx1, int dy1 ) : Rect

Origin name: dilated_by

Empty ( ) : bool
FractionCoveredBy ( Rect other ) : float

Origin name: fraction_covered_by

Grow ( int offset ) : Rect
Height ( ) : int
Include ( Rect other ) : void
Include ( int x, int y ) : void
Includes ( Rect other ) : bool
Includes ( float x, float y ) : bool
Includes ( int x, int y ) : bool
Inclusion ( Rect other ) : Rect
Intersect ( Rect other ) : void
Intersection ( Rect other ) : Rect
Overlaps ( Rect other ) : bool
PadBy ( int dx, int dy ) : void

Origin name: pad_by

Rect ( Rect r ) : System
Rect ( int x0, int y0, int x1, int y1 ) : System
ShiftBy ( int dx, int dy ) : void

Origin name: shift_by

ToString ( ) : string
Width ( ) : int
Xcenter ( ) : int
Ycenter ( ) : int

Private Methods

Method Description
ASSERT ( bool cond, string msg = "" ) : void
heaviside ( int x ) : int

Method Details

Area() public method

public Area ( ) : int
return int

Aspect() public method

public Aspect ( ) : float
return float

Centricity() public method

public Centricity ( Rect other ) : float
other Rect
return float

Contains() public method

public Contains ( Point p ) : bool
p Point
return bool

Contains() public method

public Contains ( int x, int y ) : bool
x int
y int
return bool

CreateEmpty() public static method

public static CreateEmpty ( ) : Rect
return Rect

DilatedBy() public method

Origin name: dilated_by
public DilatedBy ( int dx0, int dy0, int dx1, int dy1 ) : Rect
dx0 int
dy0 int
dx1 int
dy1 int
return Rect

Empty() public method

public Empty ( ) : bool
return bool

FractionCoveredBy() public method

Origin name: fraction_covered_by
public FractionCoveredBy ( Rect other ) : float
other Rect
return float

Grow() public method

public Grow ( int offset ) : Rect
offset int
return Rect

Height() public method

public Height ( ) : int
return int

Include() public method

public Include ( Rect other ) : void
other Rect
return void

Include() public method

public Include ( int x, int y ) : void
x int
y int
return void

Includes() public method

public Includes ( Rect other ) : bool
other Rect
return bool

Includes() public method

public Includes ( float x, float y ) : bool
x float
y float
return bool

Includes() public method

public Includes ( int x, int y ) : bool
x int
y int
return bool

Inclusion() public method

public Inclusion ( Rect other ) : Rect
other Rect
return Rect

Intersect() public method

public Intersect ( Rect other ) : void
other Rect
return void

Intersection() public method

public Intersection ( Rect other ) : Rect
other Rect
return Rect

Overlaps() public method

public Overlaps ( Rect other ) : bool
other Rect
return bool

PadBy() public method

Origin name: pad_by
public PadBy ( int dx, int dy ) : void
dx int
dy int
return void

Rect() public method

public Rect ( Rect r ) : System
r Rect
return System

Rect() public method

public Rect ( int x0, int y0, int x1, int y1 ) : System
x0 int
y0 int
x1 int
y1 int
return System

ShiftBy() public method

Origin name: shift_by
public ShiftBy ( int dx, int dy ) : void
dx int
dy int
return void

ToString() public method

public ToString ( ) : string
return string

Width() public method

public Width ( ) : int
return int

Xcenter() public method

public Xcenter ( ) : int
return int

Ycenter() public method

public Ycenter ( ) : int
return int

Property Details

x0 public_oe property

public int x0
return int