Documentation ¶
Index ¶
- func Plot(filename string, xyz XYZer)
- type Curve
- func (c Curve) BoundingBox() ln.Box
- func (c Curve) Compile()
- func (c Curve) Contains(ln.Vector, float64) bool
- func (c Curve) Intersect(ln.Ray) ln.Hit
- func (c Curve) Max() (float64, float64, float64)
- func (c Curve) Min() (float64, float64, float64)
- func (c Curve) Paths() ln.Paths
- func (c Curve) Plot(canvas draw.Canvas, plt *plot.Plot)
- type XYZer
- type XYZs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Curve ¶
Curve defines a 3D Curve. Points are ordered
func (Curve) BoundingBox ¶
BoundingBox ln.Shape interface implementation
type XYZer ¶
type XYZer interface { // Len returns the number of x, y, z triples. Len() int // XYZ returns an x, y, z triple. XYZ(int) (float64, float64, float64) }
XYZer wraps the Len and XYZ methods.
func XYZerFromSlices ¶
XYZerFromSlices generates XYZer interface from a set of points (x[i] corresponds to y[i] and z[i])
Click to show internal directories.
Click to hide internal directories.