Documentation ¶
Index ¶
- func ClampFloat64(val float64, min float64, max float64) float64
- func TowardsByFloat64(val, target, by float64) float64
- type FloatPair
- func (pair FloatPair) DistanceTo(other FloatPair) float64
- func (pair FloatPair) Length() float64
- func (pair FloatPair) Minus(other FloatPair) FloatPair
- func (pair FloatPair) Multiply(other float64) FloatPair
- func (pair FloatPair) Negative() FloatPair
- func (pair FloatPair) Normalized() FloatPair
- func (pair FloatPair) Plus(other FloatPair) FloatPair
- func (pair FloatPair) ToInt() IntPair
- type IntPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TowardsByFloat64 ¶
Types ¶
type FloatPair ¶
type FloatPair struct {
X, Y float64
}
func (FloatPair) DistanceTo ¶
func (FloatPair) Normalized ¶
Click to show internal directories.
Click to hide internal directories.