Documentation ¶
Index ¶
- type Rect
- func (rect *Rect) Bottom() float64
- func (rect *Rect) CollisionPoint(pos Vec) bool
- func (r1 Rect) CollisionRectangle(r2 Rect) bool
- func (rect *Rect) DistancePoint(point Vec) float64
- func (rect *Rect) DistanceRect(otherRect Rect) float64
- func (rect *Rect) Left() float64
- func (rect *Rect) Pos() Vec
- func (rect *Rect) Right() float64
- func (rect *Rect) Top() float64
- type RoomEditorDebugRect
- type Vec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rect ¶
func (*Rect) CollisionPoint ¶
func (Rect) CollisionRectangle ¶
func (*Rect) DistancePoint ¶
func (*Rect) DistanceRect ¶
DistanceRect will give you the distance in pixels between two rectangles this is useful for seeing how far an object is from another object.
type RoomEditorDebugRect ¶
func R ¶
func R(a Vec, b Vec) RoomEditorDebugRect
func (*RoomEditorDebugRect) Bottom ¶
func (rect *RoomEditorDebugRect) Bottom() float64
func (*RoomEditorDebugRect) Left ¶
func (rect *RoomEditorDebugRect) Left() float64
func (*RoomEditorDebugRect) Right ¶
func (rect *RoomEditorDebugRect) Right() float64
func (*RoomEditorDebugRect) Top ¶
func (rect *RoomEditorDebugRect) Top() float64
type Vec ¶
func (Vec) DistancePoint ¶
Click to show internal directories.
Click to hide internal directories.