dto

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 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 (*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 (*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