摘要:
package vector import ( "math" "fmt" )// 三维向量:(x,y,z) type Vector3 struct { X float64 `json:"x"` Y float64 `json:"y"` Z float64 `json:"z"` } func (this *Vector3)Equal(v... 阅读全文
摘要:
package matrix import ( "math" "github.com/astaxie/beego" ) type Matrix4 struct { Elements [16]float64 `json:"elements"` } type SQ struct { //矩阵结构 M,N int //m是列数,n是行... 阅读全文