Documentation ¶
Index ¶
- func Dot(lhs, rhs Vec3) float64
- func Length(v Vec3) float64
- func ToColor(v Vec3) color.RGBA
- type Vec3
- func Add(lhs, rhs Vec3) Vec3
- func Addn(vs ...Vec3) Vec3
- func Cross(lhs, rhs Vec3) Vec3
- func FromScalar(x float64) Vec3
- func Mul(lhs, rhs Vec3) Vec3
- func New(x, y, z float64) Vec3
- func Normalize(v Vec3) Vec3
- func Pow(lhs, rhs Vec3) Vec3
- func Scale(v Vec3, f float64) Vec3
- func Sub(lhs, rhs Vec3) Vec3
- func Unit() Vec3
- func Zero() Vec3
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Vec3 ¶
func FromScalar ¶
Click to show internal directories.
Click to hide internal directories.