geometry

package
v0.1.73 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EulerAngles

type EulerAngles struct {

	// Pitch identifies the rotation around the lateral axis, in degrees.
	Pitch float64 `protobuf:"fixed64,1,opt,name=pitch,proto3" json:"pitch,omitempty"`
	// Yaw identifies the rotation around the vertical axis, in degrees.
	Yaw float64 `protobuf:"fixed64,2,opt,name=yaw,proto3" json:"yaw,omitempty"`
	// Roll identifies the rotation around the longitudinal axis, in degrees.
	Roll float64 `protobuf:"fixed64,3,opt,name=roll,proto3" json:"roll,omitempty"`
	// contains filtered or unexported fields
}

EulerAngles is an orientation in degrees around the game world axes.

func (*EulerAngles) CloneMessageVT

func (m *EulerAngles) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*EulerAngles) CloneVT

func (m *EulerAngles) CloneVT() *EulerAngles

func (*EulerAngles) EqualMessageVT

func (this *EulerAngles) EqualMessageVT(thatMsg any) bool

func (*EulerAngles) EqualVT

func (this *EulerAngles) EqualVT(that *EulerAngles) bool

func (*EulerAngles) GetPitch

func (x *EulerAngles) GetPitch() float64

func (*EulerAngles) GetRoll

func (x *EulerAngles) GetRoll() float64

func (*EulerAngles) GetYaw

func (x *EulerAngles) GetYaw() float64

func (*EulerAngles) MarshalJSON

func (x *EulerAngles) MarshalJSON() ([]byte, error)

MarshalJSON marshals the EulerAngles to JSON.

func (*EulerAngles) MarshalProtoJSON

func (x *EulerAngles) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the EulerAngles message to JSON.

func (*EulerAngles) MarshalProtoText

func (x *EulerAngles) MarshalProtoText() string

func (*EulerAngles) MarshalToSizedBufferVT

func (m *EulerAngles) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*EulerAngles) MarshalToVT

func (m *EulerAngles) MarshalToVT(dAtA []byte) (int, error)

func (*EulerAngles) MarshalVT

func (m *EulerAngles) MarshalVT() (dAtA []byte, err error)

func (*EulerAngles) ProtoMessage

func (*EulerAngles) ProtoMessage()

func (*EulerAngles) Reset

func (x *EulerAngles) Reset()

func (*EulerAngles) SizeVT

func (m *EulerAngles) SizeVT() (n int)

func (*EulerAngles) String

func (x *EulerAngles) String() string

func (*EulerAngles) UnmarshalJSON

func (x *EulerAngles) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the EulerAngles from JSON.

func (*EulerAngles) UnmarshalProtoJSON

func (x *EulerAngles) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the EulerAngles message from JSON.

func (*EulerAngles) UnmarshalVT

func (m *EulerAngles) UnmarshalVT(dAtA []byte) error

type Vec3

type Vec3 struct {

	// X identifies the component along the game world east-west axis.
	X float64 `protobuf:"fixed64,1,opt,name=x,proto3" json:"x,omitempty"`
	// Y identifies the component along the game world north-south axis.
	Y float64 `protobuf:"fixed64,2,opt,name=y,proto3" json:"y,omitempty"`
	// Z identifies the component along the game world vertical axis.
	Z float64 `protobuf:"fixed64,3,opt,name=z,proto3" json:"z,omitempty"`
	// contains filtered or unexported fields
}

Vec3 is a position or direction in world space, in game units.

func (*Vec3) CloneMessageVT

func (m *Vec3) CloneMessageVT() protobuf_go_lite.CloneMessage

func (*Vec3) CloneVT

func (m *Vec3) CloneVT() *Vec3

func (*Vec3) EqualMessageVT

func (this *Vec3) EqualMessageVT(thatMsg any) bool

func (*Vec3) EqualVT

func (this *Vec3) EqualVT(that *Vec3) bool

func (*Vec3) GetX

func (x *Vec3) GetX() float64

func (*Vec3) GetY

func (x *Vec3) GetY() float64

func (*Vec3) GetZ

func (x *Vec3) GetZ() float64

func (*Vec3) MarshalJSON

func (x *Vec3) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Vec3 to JSON.

func (*Vec3) MarshalProtoJSON

func (x *Vec3) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the Vec3 message to JSON.

func (*Vec3) MarshalProtoText

func (x *Vec3) MarshalProtoText() string

func (*Vec3) MarshalToSizedBufferVT

func (m *Vec3) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Vec3) MarshalToVT

func (m *Vec3) MarshalToVT(dAtA []byte) (int, error)

func (*Vec3) MarshalVT

func (m *Vec3) MarshalVT() (dAtA []byte, err error)

func (*Vec3) ProtoMessage

func (*Vec3) ProtoMessage()

func (*Vec3) Reset

func (x *Vec3) Reset()

func (*Vec3) SizeVT

func (m *Vec3) SizeVT() (n int)

func (*Vec3) String

func (x *Vec3) String() string

func (*Vec3) UnmarshalJSON

func (x *Vec3) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Vec3 from JSON.

func (*Vec3) UnmarshalProtoJSON

func (x *Vec3) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the Vec3 message from JSON.

func (*Vec3) UnmarshalVT

func (m *Vec3) UnmarshalVT(dAtA []byte) error

Jump to

Keyboard shortcuts

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