Documentation
¶
Index ¶
- Variables
- type Vec
- type Vec2
- func (v *Vec2) Abs() Vec
- func (v *Vec2) Clone() Vec
- func (v *Vec2) CloneDown() Vec
- func (v *Vec2) Distance(axis ...int64) int64
- func (v *Vec2) DistanceTo(o Vec) int64
- func (v *Vec2) Eq(axis ...int64) bool
- func (v *Vec2) EqTo(o Vec) bool
- func (v *Vec2) Greater(axis ...int64) bool
- func (v *Vec2) GreaterThan(o Vec) bool
- func (v *Vec2) Is2D() bool
- func (v *Vec2) Is3D() bool
- func (v *Vec2) IsNegative() bool
- func (v *Vec2) IsPositive() bool
- func (v *Vec2) IsZero() bool
- func (v *Vec2) Less(axis ...int64) bool
- func (v *Vec2) LessThan(o Vec) bool
- func (v *Vec2) Move(axis ...int64) Vec
- func (v *Vec2) MoveBy(o Vec) Vec
- func (v *Vec2) Negate() Vec
- func (v *Vec2) Set(axis ...int64) Vec
- func (v *Vec2) SetTo(o Vec) Vec
- func (v *Vec2) String() string
- func (v *Vec2) Within(corner1, corner2 Vec) bool
- func (v *Vec2) X(x ...int64) int64
- func (v *Vec2) Y(y ...int64) int64
- func (v *Vec2) Z(z ...int64) int64
- func (v *Vec2) Zero() Vec
- type Vec3
- func (v *Vec3) Abs() Vec
- func (v *Vec3) Clone() Vec
- func (v *Vec3) CloneDown() Vec
- func (v *Vec3) Distance(axis ...int64) int64
- func (v *Vec3) DistanceTo(o Vec) int64
- func (v *Vec3) Eq(axis ...int64) bool
- func (v *Vec3) EqTo(o Vec) bool
- func (v *Vec3) Greater(axis ...int64) bool
- func (v *Vec3) GreaterThan(o Vec) bool
- func (v *Vec3) Is2D() bool
- func (v *Vec3) Is3D() bool
- func (v *Vec3) IsNegative() bool
- func (v *Vec3) IsPositive() bool
- func (v *Vec3) IsZero() bool
- func (v *Vec3) Less(axis ...int64) bool
- func (v *Vec3) LessThan(o Vec) bool
- func (v *Vec3) Move(axis ...int64) Vec
- func (v *Vec3) MoveBy(o Vec) Vec
- func (v *Vec3) Negate() Vec
- func (v *Vec3) Set(axis ...int64) Vec
- func (v *Vec3) SetTo(o Vec) Vec
- func (v *Vec3) String() string
- func (v *Vec3) Within(corner1, corner2 Vec) bool
- func (v *Vec3) X(x ...int64) int64
- func (v *Vec3) Y(y ...int64) int64
- func (v *Vec3) Z(z ...int64) int64
- func (v *Vec3) Zero() Vec
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Vec ¶
type Vec interface { X(...int64) int64 Y(...int64) int64 Z(...int64) int64 Is2D() bool Is3D() bool Clone() Vec CloneDown() Vec IsZero() bool Zero() Vec Abs() Vec Negate() Vec IsPositive() bool IsNegative() bool String() string Set(...int64) Vec Move(...int64) Vec SetTo(Vec) Vec MoveBy(Vec) Vec Eq(...int64) bool EqTo(Vec) bool Less(...int64) bool Greater(...int64) bool LessThan(Vec) bool GreaterThan(Vec) bool Distance(...int64) int64 DistanceTo(Vec) int64 Within(Vec, Vec) bool }
func Vec2String ¶
func Vec3String ¶
type Vec2 ¶
type Vec2 struct {
// contains filtered or unexported fields
}
A Point or Velocity in Space
func (*Vec2) DistanceTo ¶
func (*Vec2) GreaterThan ¶
func (*Vec2) IsNegative ¶
func (*Vec2) IsPositive ¶
type Vec3 ¶
type Vec3 struct {
// contains filtered or unexported fields
}
A Point or Velocity in Space
func (*Vec3) DistanceTo ¶
func (*Vec3) GreaterThan ¶
func (*Vec3) IsNegative ¶
func (*Vec3) IsPositive ¶
Click to show internal directories.
Click to hide internal directories.