Documentation ¶
Index ¶
- type ByXPos
- type ByYPos
- type ByZPos
- type PrimitiveList
- func (pl *PrimitiveList) BoundingBox(t0, t1 float64) (*aabb.AABB, bool)
- func (pl *PrimitiveList) Copy() primitive.Primitive
- func (pl *PrimitiveList) FirstHalfCopy() *PrimitiveList
- func (pl *PrimitiveList) Intersection(ray geometry.Ray, tMin, tMax float64, rng *rand.Rand) (*material.RayHit, bool)
- func (pl *PrimitiveList) IsClosed() bool
- func (pl *PrimitiveList) IsInfinite() bool
- func (pl *PrimitiveList) LastHalfCopy() *PrimitiveList
- func (pl *PrimitiveList) SetMaterial(m material.Material)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrimitiveList ¶
PrimitiveList holds a list of Primitives to process
func FromElements ¶
func FromElements(primitives ...primitive.Primitive) (*PrimitiveList, error)
FromElements creates a primitive list from variadic inputs
func (*PrimitiveList) BoundingBox ¶
func (pl *PrimitiveList) BoundingBox(t0, t1 float64) (*aabb.AABB, bool)
BoundingBox returns an AABB of this object
func (*PrimitiveList) Copy ¶
func (pl *PrimitiveList) Copy() primitive.Primitive
Copy returns a shallow copy of this object
func (*PrimitiveList) FirstHalfCopy ¶
func (pl *PrimitiveList) FirstHalfCopy() *PrimitiveList
FirstHalfCopy returns a new list with a copy of the first n/2 elements
func (*PrimitiveList) Intersection ¶
func (pl *PrimitiveList) Intersection(ray geometry.Ray, tMin, tMax float64, rng *rand.Rand) (*material.RayHit, bool)
Intersection computer the intersection of this list and a given ray
func (*PrimitiveList) IsClosed ¶
func (pl *PrimitiveList) IsClosed() bool
IsClosed returns whether this object is closed
func (*PrimitiveList) IsInfinite ¶
func (pl *PrimitiveList) IsInfinite() bool
IsInfinite returns whether this object is infinite
func (*PrimitiveList) LastHalfCopy ¶
func (pl *PrimitiveList) LastHalfCopy() *PrimitiveList
LastHalfCopy returns a new list with a copy of the last n/2 - 1 elements
func (*PrimitiveList) SetMaterial ¶
func (pl *PrimitiveList) SetMaterial(m material.Material)
SetMaterial sets this object's material
Click to show internal directories.
Click to hide internal directories.