- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 63 for rectangle (0.36 sec)
-
src/image/geom.go
func (r Rectangle) Size() Point { return Point{ r.Max.X - r.Min.X, r.Max.Y - r.Min.Y, } } // Add returns the rectangle r translated by p. func (r Rectangle) Add(p Point) Rectangle { return Rectangle{ Point{r.Min.X + p.X, r.Min.Y + p.Y}, Point{r.Max.X + p.X, r.Max.Y + p.Y}, } } // Sub returns the rectangle r translated by -p. func (r Rectangle) Sub(p Point) Rectangle {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:45 UTC 2023 - 7.3K bytes - Viewed (0) -
src/image/draw/clip_test.go
desc string r, dr, sr, mr image.Rectangle sp, mp image.Point nilMask bool r0 image.Rectangle sp0, mp0 image.Point } var clipTests = []clipTest{ // The following tests all have a nil mask. { "basic", image.Rect(0, 0, 100, 100), image.Rect(0, 0, 100, 100), image.Rect(0, 0, 100, 100), image.Rectangle{}, image.Point{}, image.Point{}, true,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 18:07:05 UTC 2023 - 4.4K bytes - Viewed (0) -
tests/test_computed_fields.py
app = FastAPI() from pydantic import BaseModel, computed_field class Rectangle(BaseModel): width: int length: int @computed_field @property def area(self) -> int: return self.width * self.length @app.get("/") def read_root() -> Rectangle: return Rectangle(width=3, length=4) client = TestClient(app) return client
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Aug 04 20:47:07 UTC 2023 - 2.2K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/doc/c4/lib/C4_Container.puml
!define Container(e_alias, e_label, e_techn) rectangle "==e_label\n//<size:TECHN_FONT_SIZE>[e_techn]</size>//" <<container>> as e_alias !define Container(e_alias, e_label, e_techn, e_descr) rectangle "==e_label\n//<size:TECHN_FONT_SIZE>[e_techn]</size>//\n\n e_descr" <<container>> as e_alias ' Boundaries ' ##################################
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 1.5K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/doc/c4/lib/C4_Context.puml
!define System(e_alias, e_label, e_descr) rectangle "==e_label\n\n e_descr" <<system>> as e_alias !define System_Ext(e_alias, e_label) rectangle "==e_label" <<external_system>> as e_alias !define System_Ext(e_alias, e_label, e_descr) rectangle "==e_label\n\n e_descr" <<external_system>> as e_alias ' Boundaries ' ##################################
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 2.5K bytes - Viewed (0) -
src/image/image_test.go
{"Alpha", func(r Rectangle) { NewAlpha(r) }}, {"Alpha16", func(r Rectangle) { NewAlpha16(r) }}, {"Gray", func(r Rectangle) { NewGray(r) }}, {"Gray16", func(r Rectangle) { NewGray16(r) }}, {"CMYK", func(r Rectangle) { NewCMYK(r) }}, {"Paletted", func(r Rectangle) { NewPaletted(r, color.Palette{color.Black, color.White}) }}, {"YCbCr", func(r Rectangle) { NewYCbCr(r, YCbCrSubsampleRatio422) }},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 30 02:00:49 UTC 2021 - 10.8K bytes - Viewed (0) -
src/image/ycbcr.go
// ratio. func NewYCbCr(r Rectangle, subsampleRatio YCbCrSubsampleRatio) *YCbCr { w, h, cw, ch := yCbCrSize(r, subsampleRatio) // totalLength should be the same as i2, below, for a valid Rectangle r. totalLength := add2NonNeg( mul3NonNeg(1, w, h), mul3NonNeg(2, cw, ch), ) if totalLength < 0 { panic("image: NewYCbCr Rectangle has huge or negative dimensions") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:45 UTC 2023 - 8.7K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/doc/c4/lib/C4_Component.puml
!define Component(e_alias, e_label, e_techn) rectangle "==e_label\n//<size:TECHN_FONT_SIZE>[e_techn]</size>//" <<component>> as e_alias !define Component(e_alias, e_label, e_techn, e_descr) rectangle "==e_label\n//<size:TECHN_FONT_SIZE>[e_techn]</size>//\n\n e_descr" <<component>> as e_alias ' Boundaries ' ##################################
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 1.5K bytes - Viewed (0) -
src/image/image.go
// compatibility. The NewXxx functions do not return an error. func pixelBufferLength(bytesPerPixel int, r Rectangle, imageTypeName string) int { totalLength := mul3NonNeg(bytesPerPixel, r.Dx(), r.Dy()) if totalLength < 0 { panic("image: New" + imageTypeName + " Rectangle has huge or negative dimensions") } return totalLength } // RGBA is an in-memory image whose At method returns [color.RGBA] values.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:45 UTC 2023 - 34.9K bytes - Viewed (0) -
src/image/geom_test.go
t.Errorf("Intersect: r=%s, s=%s, a=%s, a not in s: %v", r, s, a, err) } if isZero, overlaps := a == (Rectangle{}), r.Overlaps(s); isZero == overlaps { t.Errorf("Intersect: r=%s, s=%s, a=%s: isZero=%t same as overlaps=%t", r, s, a, isZero, overlaps) } largerThanA := [4]Rectangle{a, a, a, a} largerThanA[0].Min.X-- largerThanA[1].Min.Y-- largerThanA[2].Max.X++ largerThanA[3].Max.Y++
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 10 05:05:59 UTC 2017 - 3K bytes - Viewed (0)