Documentation ¶
Index ¶
- Constants
- func CrossProd(v1 []float64, v2 []float64, res []float64)
- func GetNPoint(id int) []int
- func GetTotalNPoint(id int) int
- func InnerProd(p1 []float64, p2 []float64) (res float64)
- func Mod(p1 []float64) float64
- func Normalize(coor []float64, new_coor []float64, trans_mat []float64)
- func PolyDiff(p1, p2, res int)
- func PolyInter(p1, p2, res int)
- func PolyUnion(p1, p2, res int)
- func Unify(v []float64) float64
- type Area
- type AsyDrawer
- type Bound
- type Drawer
- type Face
- type Point
- type Poly
- func (p *Poly) CalBoundingBox() (pmin, pmax []float64)
- func (p Poly) Draw(d Drawer, class int)
- func (p *Poly) Finish()
- func (p *Poly) GetNPoint() []int
- func (p *Poly) GetTotalNPoint() int
- func (p *Poly) IsEmpty() bool
- func (p *Poly) NewBound(is_hole bool)
- func (p *Poly) NewPoint(x, y float64)
- func (p *Poly) SetPoly(id int)
- type Scene
- func (s *Scene) CheckProjection(proj_dir []float64, window *Area, is_debug bool) (res bool, shadow_scene *Scene)
- func (s *Scene) Draw(proj_coor []float64, d Drawer, draw_classes []int)
- func (s *Scene) Finish(need_norm bool)
- func (s *Scene) GetTotalNPoint() (tnp, mnp int)
- func (s *Scene) NewArea() *Area
Constants ¶
View Source
const EPS = float64(C.GPC_EPSILON)
Variables ¶
This section is empty.
Functions ¶
func GetTotalNPoint ¶
Types ¶
type AsyDrawer ¶
type AsyDrawer struct {
// contains filtered or unexported fields
}
func InitAsyDrawer ¶
type Poly ¶
type Poly struct {
// contains filtered or unexported fields
}
func (*Poly) CalBoundingBox ¶
func (*Poly) GetTotalNPoint ¶
type Scene ¶
type Scene struct {
// contains filtered or unexported fields
}
func (*Scene) CheckProjection ¶
func (*Scene) GetTotalNPoint ¶
Click to show internal directories.
Click to hide internal directories.