Documentation ¶
Overview ¶
Package types provides pdfcpu's base types.
Index ¶
- type Point
- type Rectangle
- func (r Rectangle) AspectRatio() float64
- func (r Rectangle) Center() Point
- func (r Rectangle) Contains(p Point) bool
- func (r Rectangle) Height() float64
- func (r Rectangle) Landscape() bool
- func (r Rectangle) Portrait() bool
- func (r Rectangle) ShortString() string
- func (r Rectangle) String() string
- func (r Rectangle) Width() float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rectangle ¶
type Rectangle struct {
LL, UR Point
}
Rectangle represents a rectangular region in userspace.
func NewRectangle ¶
NewRectangle returns a new rectangle for given corner coordinates.
func (Rectangle) AspectRatio ¶
AspectRatio returns the relation between width and height of a rectangle.
func (Rectangle) ShortString ¶
ShortString returns a compact string representation for r.
Click to show internal directories.
Click to hide internal directories.