Documentation
¶
Index ¶
- type Tuple
- func (t *Tuple) Add(t2 Tuple) Tuple
- func (t *Tuple) CrossProduct(t2 Tuple) Tuple
- func (t *Tuple) Divide(n float64) Tuple
- func (t *Tuple) DotProduct(t2 Tuple) float64
- func (t *Tuple) Equals(t2 Tuple) bool
- func (t *Tuple) Magnitude() float64
- func (t *Tuple) Multiply(n float64) Tuple
- func (t *Tuple) Negate() Tuple
- func (t *Tuple) Normalize() Tuple
- func (t *Tuple) Reflect(normal Tuple) Tuple
- func (t *Tuple) Subtract(t2 Tuple) Tuple
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tuple ¶
Tuple is set of coordinates
func (*Tuple) CrossProduct ¶
CrossProduct returns the vector product of two vectors
func (*Tuple) DotProduct ¶
DotProduct returns the scalar product of two vectors
Click to show internal directories.
Click to hide internal directories.