Documentation ¶
Index ¶
- type Dimensions
- type Rectangle
- func (r *Rectangle) GetAspectRatio() float64
- func (r *Rectangle) GetHeight() int
- func (r *Rectangle) GetWidth() int
- func (r *Rectangle) GetX() int
- func (r *Rectangle) GetX1() int
- func (r *Rectangle) GetX2() int
- func (r *Rectangle) GetY() int
- func (r *Rectangle) GetY1() int
- func (r *Rectangle) GetY2() int
- func (r *Rectangle) WithRescaling(newScale *float64, roundingFunc *string) (nr *Rectangle, err error)
- func (r *Rectangle) WithSwappedAxes() (nr Rectangle)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dimensions ¶
type Dimensions struct {
// contains filtered or unexported fields
}
func NewDimensions ¶
func NewDimensions(width, height int) (d Dimensions)
func (*Dimensions) GetAspectRatio ¶
func (d *Dimensions) GetAspectRatio() float64
func (*Dimensions) GetHeight ¶
func (d *Dimensions) GetHeight() int
func (*Dimensions) GetWidth ¶
func (d *Dimensions) GetWidth() int
func (*Dimensions) WithRescaling ¶
func (d *Dimensions) WithRescaling(newScale *float64, roundingFunc *string) (nd Dimensions, err error)
func (*Dimensions) WithSwappedAxes ¶
func (d *Dimensions) WithSwappedAxes() (nd Dimensions)
type Rectangle ¶
type Rectangle struct {
// contains filtered or unexported fields
}
func NewRectangle ¶
func (*Rectangle) GetAspectRatio ¶
func (*Rectangle) WithRescaling ¶
func (*Rectangle) WithSwappedAxes ¶
Click to show internal directories.
Click to hide internal directories.