Documentation ¶
Index ¶
- func Abs(value float64) float64
- func Clamp(value, a, b float64) float64
- func DegreesToRadians(degrees float64) float64
- func Distance(a, b *Point3) float64
- func Dot(a, b *Vec3) float64
- func Max(a, b float64) float64
- func Min(a, b float64) float64
- type Aabb
- type AabbBuilder
- type Onb
- type Perlin
- type Point3
- type RandExt
- func (this *RandExt) Between(a, b float64) float64
- func (this *RandExt) RandomCosineDirection() *Vec3
- func (this *RandExt) RandomInHemisphere(normal *Vec3) *Vec3
- func (this *RandExt) RandomInUnitDisk() *Vec3
- func (this *RandExt) RandomInUnitSphere() *Vec3
- func (this *RandExt) RandomToSphere(radius, distance2 float64) *Vec3
- func (this *RandExt) RandomUnitVector() *Vec3
- type Ray
- type Vec2
- type Vec3
- func (v *Vec3) Add(a *Vec3) *Vec3
- func (v *Vec3) AsColor() color.Color
- func (v *Vec3) AsPoint3() *Point3
- func (v *Vec3) Length() float64
- func (v *Vec3) Length2() float64
- func (v *Vec3) Mul(t float64) *Vec3
- func (v *Vec3) MulVec(a *Vec3) *Vec3
- func (v *Vec3) NearZero() bool
- func (v *Vec3) Normalize() *Vec3
- func (v *Vec3) Sub(a *Vec3) *Vec3
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DegreesToRadians ¶
Types ¶
type AabbBuilder ¶
type AabbBuilder struct {
// contains filtered or unexported fields
}
func MakeAabbBuilder ¶
func MakeAabbBuilder() *AabbBuilder
func (*AabbBuilder) AddPoint ¶
func (this *AabbBuilder) AddPoint(p *Point3)
func (*AabbBuilder) GetBox ¶
func (this *AabbBuilder) GetBox() *Aabb
type RandExt ¶
func MakeRandExt ¶
func (*RandExt) RandomCosineDirection ¶
func (*RandExt) RandomInHemisphere ¶
func (*RandExt) RandomInUnitDisk ¶
func (*RandExt) RandomInUnitSphere ¶
func (*RandExt) RandomToSphere ¶
func (*RandExt) RandomUnitVector ¶
type Ray ¶
func MakeRayFromPoints ¶
Click to show internal directories.
Click to hide internal directories.