dto

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2023 License: Unlicense Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL