-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy patherrors.go
More file actions
16 lines (13 loc) · 688 Bytes
/
errors.go
File metadata and controls
16 lines (13 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package vector
import "errors"
var (
// ErrNot3Dimensional is an error that is returned in functions that only
// supports 3 dimensional vectors
ErrNot3Dimensional = errors.New("vector is not 3 dimensional")
// ErrNotSameDimensions is an error that is returned when functions need both
// Vectors provided to be the same dimensionally
ErrNotSameDimensions = errors.New("the two vectors provided aren't the same dimensional size")
// ErrNotValidSwizzleIndex is an error that is returned when swizzling a vector and passing
// an index that lies outside of the length of the vector
ErrNotValidSwizzleIndex = errors.New("index for swizzling is not valid for the given vector")
)