Documentation ¶
Index ¶
- func AngleBetween(centre, p1, p2 Vector2d) float64
- func Fmod(a float64, b float64) float64
- func GetX(v Vector2d) float64
- func GetY(v Vector2d) float64
- func Xor(v1 bool, v2 bool) bool
- type Camera
- func (camera *Camera) GenRotated(rotations int, rotOffset float64) []mgl32.Mat4
- func (camera *Camera) GenRotatedX(rotations int, rotOffset float64) []mgl32.Mat4
- func (camera Camera) GetProjectionView() mgl32.Mat4
- func (camera Camera) GetWorldRect() Rectangle
- func (camera *Camera) Rotate(rad float64)
- func (camera *Camera) Scale(scale Vector2d)
- func (camera *Camera) SetOrigin(pos Vector2d)
- func (camera *Camera) SetOsuViewport(width, height int)
- func (camera *Camera) SetPosition(pos Vector2d)
- func (camera *Camera) SetRotation(rad float64)
- func (camera *Camera) SetScale(scale Vector2d)
- func (camera *Camera) SetViewport(width, height int, yDown bool)
- func (camera *Camera) SetViewportF(x, y, width, height int)
- func (camera *Camera) Translate(pos Vector2d)
- func (camera Camera) Unproject(screenPos Vector2d) Vector2d
- func (camera *Camera) Update()
- type Rectangle
- type Vector2d
- func (v Vector2d) Abs() Vector2d
- func (v Vector2d) Add(v1 Vector2d) Vector2d
- func (v Vector2d) AddS(x, y float64) Vector2d
- func (v Vector2d) Angle() float64
- func (v Vector2d) AngleR() float64
- func (v Vector2d) AngleRV(v1 Vector2d) float64
- func (v Vector2d) AsVec3() mgl32.Vec3
- func (v Vector2d) AsVec4() mgl32.Vec4
- func (v Vector2d) Copy() Vector2d
- func (v Vector2d) Dot(v1 Vector2d) float64
- func (v Vector2d) Dst(v1 Vector2d) float64
- func (v Vector2d) DstSq(v1 Vector2d) float64
- func (v Vector2d) Len() float64
- func (v Vector2d) Mid(v1 Vector2d) Vector2d
- func (v Vector2d) Mult(v1 Vector2d) Vector2d
- func (v Vector2d) Nor() Vector2d
- func (v Vector2d) Rotate(rad float64) Vector2d
- func (v Vector2d) Scl(mag float64) Vector2d
- func (v *Vector2d) Set(x, y float64)
- func (v *Vector2d) SetRad(rad, length float64)
- func (v Vector2d) Sub(v1 Vector2d) Vector2d
- func (v Vector2d) X32() float32
- func (v Vector2d) Y32() float32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AngleBetween ¶
Types ¶
type Camera ¶
type Camera struct {
// contains filtered or unexported fields
}
func (*Camera) GenRotated ¶
func (*Camera) GenRotatedX ¶
func (Camera) GetProjectionView ¶
func (Camera) GetWorldRect ¶
func (*Camera) SetOsuViewport ¶
func (*Camera) SetPosition ¶
func (*Camera) SetRotation ¶
func (*Camera) SetViewport ¶
func (*Camera) SetViewportF ¶
Click to show internal directories.
Click to hide internal directories.