Rectangle

Overview

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island
  • Namespace: go.image
  • Platforms: .NET, .NET Standard 2.0, Island

 

constructor

 

constructor

 

Rectangle()

 

init()

constructor (Point, Point)

 

constructor(aMin: Point; aMax: Point)

 

Rectangle(Point aMin, Point aMax)

 

init(_ aMin: Point, _ aMax: Point)

Parameters:

  • aMin:
  • aMax:

constructor (Rectangle)

 

constructor(value: Rectangle)

 

Rectangle(Rectangle value)

 

init(_ value: Rectangle)

Parameters:

  • value:

Add

 

method Add(p: Point): Rectangle

 

Rectangle Add(Point p)

 

func Add(_ p: Point) -> Rectangle

 

func Add(p Point) Rectangle

Parameters:

  • p:

At

 

method At(x: int; y: int): Color

 

Color At(int x, int y)

 

func At(_ x: int, _ y: int) -> Color

 

func At(x int, y int) Color

Parameters:

  • x:
  • y:

Bounds

 

method Bounds: Rectangle

 

Rectangle Bounds()

 

func Bounds() -> Rectangle

 

func Bounds() Rectangle

Canon

 

method Canon: Rectangle

 

Rectangle Canon()

 

func Canon() -> Rectangle

 

func Canon() Rectangle

ColorModel

 

// .NET, .NET Standard 2.0
method ColorModel: Model
// Island
method ColorModel: Model

 

// .NET, .NET Standard 2.0
Model ColorModel()
// Island
Model ColorModel()

 

// .NET, .NET Standard 2.0
func ColorModel() -> Model
// Island
func ColorModel() -> Model

 

// .NET, .NET Standard 2.0
func ColorModel() Model
// Island
func ColorModel() Model

Dx

 

method Dx: int

 

int Dx()

 

func Dx() -> int

 

func Dx() int

Dy

 

method Dy: int

 

int Dy()

 

func Dy() -> int

 

func Dy() int

Empty

 

method Empty: bool

 

bool Empty()

 

func Empty() -> bool

 

func Empty() bool

Eq

 

method Eq(s: Rectangle): bool

 

bool Eq(Rectangle s)

 

func Eq(_ s: Rectangle) -> bool

 

func Eq(s Rectangle) bool

Parameters:

  • s:

In

 

method In(s: Rectangle): bool

 

bool In(Rectangle s)

 

func In(_ s: Rectangle) -> bool

 

func In(s Rectangle) bool

Parameters:

  • s:

Inset

 

method Inset(n: int): Rectangle

 

Rectangle Inset(int n)

 

func Inset(_ n: int) -> Rectangle

 

func Inset(n int) Rectangle

Parameters:

  • n:

Intersect

 

method Intersect(s: Rectangle): Rectangle

 

Rectangle Intersect(Rectangle s)

 

func Intersect(_ s: Rectangle) -> Rectangle

 

func Intersect(s Rectangle) Rectangle

Parameters:

  • s:

Max

 

var Max: Point;

 

Point Max

 

var Max: Point

 

Max Point

Min

 

var Min: Point;

 

Point Min

 

var Min: Point

 

Min Point

Overlaps

 

method Overlaps(s: Rectangle): bool

 

bool Overlaps(Rectangle s)

 

func Overlaps(_ s: Rectangle) -> bool

 

func Overlaps(s Rectangle) bool

Parameters:

  • s:

Size

 

method Size: Point

 

Point Size()

 

func Size() -> Point

 

func Size() Point

String

 

method String: string

 

string String()

 

func String() -> string

 

func String() string

Sub

 

method Sub(p: Point): Rectangle

 

Rectangle Sub(Point p)

 

func Sub(_ p: Point) -> Rectangle

 

func Sub(p Point) Rectangle

Parameters:

  • p:

Union

 

method Union(s: Rectangle): Rectangle

 

Rectangle Union(Rectangle s)

 

func Union(_ s: Rectangle) -> Rectangle

 

func Union(s Rectangle) Rectangle

Parameters:

  • s:

 

Max

 

var Max: Point;

 

Point Max

 

var Max: Point

 

Max Point

Min

 

var Min: Point;

 

Point Min

 

var Min: Point

 

Min Point

 

constructor

 

constructor

 

Rectangle()

 

init()

constructor (Point, Point)

 

constructor(aMin: Point; aMax: Point)

 

Rectangle(Point aMin, Point aMax)

 

init(_ aMin: Point, _ aMax: Point)

Parameters:

  • aMin:
  • aMax:

constructor (Rectangle)

 

constructor(value: Rectangle)

 

Rectangle(Rectangle value)

 

init(_ value: Rectangle)

Parameters:

  • value:

Add

 

method Add(p: Point): Rectangle

 

Rectangle Add(Point p)

 

func Add(_ p: Point) -> Rectangle

 

func Add(p Point) Rectangle

Parameters:

  • p:

At

 

method At(x: int; y: int): Color

 

Color At(int x, int y)

 

func At(_ x: int, _ y: int) -> Color

 

func At(x int, y int) Color

Parameters:

  • x:
  • y:

Bounds

 

method Bounds: Rectangle

 

Rectangle Bounds()

 

func Bounds() -> Rectangle

 

func Bounds() Rectangle

Canon

 

method Canon: Rectangle

 

Rectangle Canon()

 

func Canon() -> Rectangle

 

func Canon() Rectangle

ColorModel

 

// .NET, .NET Standard 2.0
method ColorModel: Model
// Island
method ColorModel: Model

 

// .NET, .NET Standard 2.0
Model ColorModel()
// Island
Model ColorModel()

 

// .NET, .NET Standard 2.0
func ColorModel() -> Model
// Island
func ColorModel() -> Model

 

// .NET, .NET Standard 2.0
func ColorModel() Model
// Island
func ColorModel() Model

Dx

 

method Dx: int

 

int Dx()

 

func Dx() -> int

 

func Dx() int

Dy

 

method Dy: int

 

int Dy()

 

func Dy() -> int

 

func Dy() int

Empty

 

method Empty: bool

 

bool Empty()

 

func Empty() -> bool

 

func Empty() bool

Eq

 

method Eq(s: Rectangle): bool

 

bool Eq(Rectangle s)

 

func Eq(_ s: Rectangle) -> bool

 

func Eq(s Rectangle) bool

Parameters:

  • s:

In

 

method In(s: Rectangle): bool

 

bool In(Rectangle s)

 

func In(_ s: Rectangle) -> bool

 

func In(s Rectangle) bool

Parameters:

  • s:

Inset

 

method Inset(n: int): Rectangle

 

Rectangle Inset(int n)

 

func Inset(_ n: int) -> Rectangle

 

func Inset(n int) Rectangle

Parameters:

  • n:

Intersect

 

method Intersect(s: Rectangle): Rectangle

 

Rectangle Intersect(Rectangle s)

 

func Intersect(_ s: Rectangle) -> Rectangle

 

func Intersect(s Rectangle) Rectangle

Parameters:

  • s:

Overlaps

 

method Overlaps(s: Rectangle): bool

 

bool Overlaps(Rectangle s)

 

func Overlaps(_ s: Rectangle) -> bool

 

func Overlaps(s Rectangle) bool

Parameters:

  • s:

Size

 

method Size: Point

 

Point Size()

 

func Size() -> Point

 

func Size() Point

String

 

method String: string

 

string String()

 

func String() -> string

 

func String() string

Sub

 

method Sub(p: Point): Rectangle

 

Rectangle Sub(Point p)

 

func Sub(_ p: Point) -> Rectangle

 

func Sub(p Point) Rectangle

Parameters:

  • p:

Union

 

method Union(s: Rectangle): Rectangle

 

Rectangle Union(Rectangle s)

 

func Union(_ s: Rectangle) -> Rectangle

 

func Union(s Rectangle) Rectangle

Parameters:

  • s: