Documentation ¶
Index ¶
- Variables
- type D3
- type Point
- type Pt
- type Pt1
- type Pt2
- type Pt2c1
- type Q
- type Rotation
- type RotationPlane
- type Scale
- type T
- type TGen
- type TransformSet
- type Translate
- type V
- func (v V) Abs() V
- func (v V) Add(v2 V) V
- func (v V) Ang(v2 V) angle.Rad
- func (v V) Cross(v2 V) V
- func (v V) Dot(v2 V) float64
- func (v V) Mag() float64
- func (v V) Mag2() float64
- func (v V) Multiply(scale float64) V
- func (v V) Normal() V
- func (v V) Project(v2 V) V
- func (v V) String() string
- func (v V) Subtract(v2 V) V
- func (v V) V() V
- type V1
- type Vector
Constants ¶
This section is empty.
Variables ¶
View Source
var Prec = 4
Prec is the precision for the String method on F
Functions ¶
This section is empty.
Types ¶
type Pt ¶
type Pt D3
type Q ¶
type Q struct {
A, B, C, D float64
}
Q is a quaternion used for rotations. B, C and D correspond to the X, Y and Z axis.
type Rotation ¶
type Rotation struct { Angle angle.Rad Plane RotationPlane }
type Scale ¶
type Scale V
type TransformSet ¶
type TransformSet struct {
Head, Middle, Tail []*T
}
func NewTSet ¶
func NewTSet() *TransformSet
func (*TransformSet) Add ¶
func (ts *TransformSet) Add(t *T) *TransformSet
func (*TransformSet) AddBoth ¶
func (ts *TransformSet) AddBoth(t [2]*T) *TransformSet
func (*TransformSet) Get ¶
func (ts *TransformSet) Get() *T
type Translate ¶
type Translate V
Directories ¶
Path | Synopsis |
---|---|
Package affine allows for combinations of points where the sum of the coefficients is zero.
|
Package affine allows for combinations of points where the sum of the coefficients is zero. |
curve
|
|
render
|
|
shape
|
|
Click to show internal directories.
Click to hide internal directories.