Documentation ¶
Index ¶
- Constants
- func Equal(expected Tuple) types.GomegaMatcher
- type Tuple
- func (t Tuple) Add(s Tuple) Tuple
- func (t Tuple) ComponentwiseMultiply(s Tuple) Tuple
- func (t Tuple) Cross(s Tuple) Tuple
- func (t Tuple) Divide(c float64) Tuple
- func (t Tuple) Dot(s Tuple) float64
- func (t Tuple) Equals(s Tuple) bool
- func (t Tuple) IsPoint() bool
- func (t Tuple) IsVector() bool
- func (t Tuple) Magnitude() float64
- func (t Tuple) Multiply(c float64) Tuple
- func (t Tuple) Negate() Tuple
- func (t Tuple) Normalize() Tuple
- func (t Tuple) Reflect(normal Tuple) Tuple
- func (t Tuple) Subtract(s Tuple) Tuple
Constants ¶
View Source
const EPSILON = 0.00001
Variables ¶
This section is empty.
Functions ¶
func Equal ¶
func Equal(expected Tuple) types.GomegaMatcher
Types ¶
type Tuple ¶
func (Tuple) ComponentwiseMultiply ¶
Click to show internal directories.
Click to hide internal directories.