Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for rectangle (0.29 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. src/image/draw/draw.go

    // [Op].
    func (op Op) Draw(dst Image, r image.Rectangle, src image.Image, sp image.Point) {
    	DrawMask(dst, r, src, sp, nil, image.Point{}, op)
    }
    
    // Drawer contains the [Draw] method.
    type Drawer interface {
    	// Draw aligns r.Min in dst with sp in src and then replaces the
    	// rectangle r in dst with the result of drawing src on dst.
    	Draw(dst Image, r image.Rectangle, src image.Image, sp image.Point)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 33.9K bytes
    - Viewed (0)
Back to top