示例#1
0
文件: camera.go 项目: swantescholz/go
func (this *Camera) RotateY(angle float64) {
	yaxis := this.Up
	mrot := mat4.RotationAxis(yaxis, angle)
	this.Dir = mrot.Mulv(this.Dir)
}
示例#2
0
文件: camera.go 项目: swantescholz/go
func (this *Camera) RotateX(angle float64) {
	xaxis := this.Dir.Cross(this.Up)
	mrot := mat4.RotationAxis(xaxis, angle)
	this.Dir = mrot.Mulv(this.Dir)
}