Documentation
¶
Index ¶
- type Mat4
- func Mat4Frustum(_left float32, _right float32, _bottom float32, _top float32, _near float32, ...) (m Mat4)
- func Mat4Ident() Mat4
- func Mat4LookAt(_eye Vec3, _lookAt Vec3, _up Vec3) (m Mat4)
- func Mat4Ortho(xMin float32, xMax float32, yMin float32, yMax float32, zMin float32, ...) (m Mat4)
- func Mat4Perspective(_fovy float32, _aspect float32, _near float32, _far float32) (m Mat4)
- func Mat4Rot(rad float32, _x float32, _y float32, _z float32) (rot Mat4)
- func Mat4RotX(rad float32) (rot Mat4)
- func Mat4RotY(rad float32) (rot Mat4)
- func Mat4RotZ(rad float32) (rot Mat4)
- func Mat4Scale(_sx float32, _sy float32, _sz float32) (n Mat4)
- func Mat4Trans(_dx float32, _dy float32, _dz float32) (trans Mat4)
- type Mat4Stack
- type Rect
- func (r Rect) Center() (x, y float32)
- func (r Rect) Contains(x, y float32) bool
- func (r Rect) Height() float32
- func (r Rect) IsEmpty() bool
- func (r Rect) IsNegative() bool
- func (r Rect) PositiveCopy() (x Rect)
- func (r Rect) Width() float32
- func (r Rect) X0() float32
- func (r Rect) X1() float32
- func (r Rect) Y0() float32
- func (r Rect) Y1() float32
- type Vec2
- type Vec3
- type Vec4
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mat4 ¶
type Mat4 [16]float32
Mat4 is 4x4 matrix
func Mat4Frustum ¶
func Mat4Perspective ¶
type Rect ¶
type Rect [4]float32
Rect is 2D rectangle in (x0,y0,x1,y1) format
func (Rect) PositiveCopy ¶
PositiveCopy return a copy of r which guarantee x1 >= x0 and y1 >= y0
Click to show internal directories.
Click to hide internal directories.