Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonVector2 ¶
type JsonVector2 struct { X float64 `json:"x" validate:"required"` Y float64 `json:"y" validate:"required"` }
func GenVec2 ¶
func GenVec2(x, y float64) JsonVector2
func GenVec2FromGo3d ¶ added in v1.0.2
func GenVec2FromGo3d(item *vec2.T) JsonVector2
func (*JsonVector2) GenVec ¶
func (item *JsonVector2) GenVec() vec2.T
type JsonVector3 ¶
type JsonVector3 struct { X float64 `json:"x" validate:"required"` Y float64 `json:"y" validate:"required"` Z float64 `json:"z" validate:"required"` }
func GenVec3 ¶
func GenVec3(x, y, z float64) JsonVector3
func GenVec3FromGo3d ¶ added in v1.0.2
func GenVec3FromGo3d(item *vec3.T) JsonVector3
func (*JsonVector3) GenVec ¶
func (item *JsonVector3) GenVec() vec3.T
Click to show internal directories.
Click to hide internal directories.