geometry

package
v0.0.0-...-37f97d0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGeometry        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGeometry          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGeometry = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Rectangle

type Rectangle struct {
	PointA *Vec3 `protobuf:"bytes,1,opt,name=PointA,proto3" json:"PointA,omitempty"`
	PointB *Vec3 `protobuf:"bytes,2,opt,name=PointB,proto3" json:"PointB,omitempty"`
}

func NewPopulatedRectangle

func NewPopulatedRectangle(r randyGeometry, easy bool) *Rectangle

func (*Rectangle) Descriptor

func (*Rectangle) Descriptor() ([]byte, []int)

func (*Rectangle) Equal

func (this *Rectangle) Equal(that interface{}) bool

func (*Rectangle) GetPointA

func (m *Rectangle) GetPointA() *Vec3

func (*Rectangle) GetPointB

func (m *Rectangle) GetPointB() *Vec3

func (*Rectangle) GoString

func (this *Rectangle) GoString() string

func (*Rectangle) Marshal

func (m *Rectangle) Marshal() (dAtA []byte, err error)

func (*Rectangle) MarshalTo

func (m *Rectangle) MarshalTo(dAtA []byte) (int, error)

func (*Rectangle) MarshalToSizedBuffer

func (m *Rectangle) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Rectangle) ProtoMessage

func (*Rectangle) ProtoMessage()

func (*Rectangle) Reset

func (m *Rectangle) Reset()

func (*Rectangle) Size

func (m *Rectangle) Size() (n int)

func (*Rectangle) String

func (this *Rectangle) String() string

func (*Rectangle) Unmarshal

func (m *Rectangle) Unmarshal(dAtA []byte) error

func (*Rectangle) XXX_DiscardUnknown

func (m *Rectangle) XXX_DiscardUnknown()

func (*Rectangle) XXX_Marshal

func (m *Rectangle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Rectangle) XXX_Merge

func (m *Rectangle) XXX_Merge(src proto.Message)

func (*Rectangle) XXX_Size

func (m *Rectangle) XXX_Size() int

func (*Rectangle) XXX_Unmarshal

func (m *Rectangle) XXX_Unmarshal(b []byte) error

type Vec3

type Vec3 struct {
	X uint64 `protobuf:"varint,1,opt,name=X,proto3" json:"X,omitempty"`
	Y uint64 `protobuf:"varint,2,opt,name=Y,proto3" json:"Y,omitempty"`
	// Z is a floor and no a cartesian coordinate
	Z uint64 `protobuf:"varint,3,opt,name=Z,proto3" json:"Z,omitempty"`
}

func NewPopulatedVec3

func NewPopulatedVec3(r randyGeometry, easy bool) *Vec3

func NewVec3Random

func NewVec3Random(min Vec3, max Vec3) Vec3

NewVec3Random returns a random Vec3 with coordinates range between params.

func (*Vec3) Descriptor

func (*Vec3) Descriptor() ([]byte, []int)

func (*Vec3) Equal

func (this *Vec3) Equal(that interface{}) bool

func (*Vec3) GetX

func (m *Vec3) GetX() uint64

func (*Vec3) GetY

func (m *Vec3) GetY() uint64

func (*Vec3) GetZ

func (m *Vec3) GetZ() uint64

func (*Vec3) GoString

func (this *Vec3) GoString() string

func (*Vec3) Marshal

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

func (*Vec3) MarshalTo

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

func (*Vec3) MarshalToSizedBuffer

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

func (*Vec3) ProtoMessage

func (*Vec3) ProtoMessage()

func (*Vec3) Reset

func (m *Vec3) Reset()

func (*Vec3) Size

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

func (*Vec3) String

func (this *Vec3) String() string

func (*Vec3) Unmarshal

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

func (*Vec3) XXX_DiscardUnknown

func (m *Vec3) XXX_DiscardUnknown()

func (*Vec3) XXX_Marshal

func (m *Vec3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Vec3) XXX_Merge

func (m *Vec3) XXX_Merge(src proto.Message)

func (*Vec3) XXX_Size

func (m *Vec3) XXX_Size() int

func (*Vec3) XXX_Unmarshal

func (m *Vec3) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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