- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 42 for rectangle (0.27 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/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/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) -
platforms/core-configuration/kotlin-dsl/doc/c4/lib/C4.puml
skinparam defaultTextAlignment center skinparam wrapWidth 200 skinparam maxMessageSize 150 skinparam rectangle { StereotypeFontSize 12 shadowing false } skinparam Arrow { Color #666666 FontColor #666666 FontSize 12 } skinparam rectangle<<boundary>> { Shadowing false StereotypeFontSize 0 FontSize 12 FontColor #444444 BorderColor #444444
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 3.6K bytes - Viewed (0) -
src/image/names.go
return c.C.RGBA() } func (c *Uniform) ColorModel() color.Model { return c } func (c *Uniform) Convert(color.Color) color.Color { return c.C } func (c *Uniform) Bounds() Rectangle { return Rectangle{Point{-1e9, -1e9}, Point{1e9, 1e9}} } func (c *Uniform) At(x, y int) color.Color { return c.C } func (c *Uniform) RGBA64At(x, y int) color.RGBA64 { r, g, b, a := c.C.RGBA()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:45 UTC 2023 - 1.5K bytes - Viewed (0)