Esempio n. 1
0
func getVertices(s string, m r3.Matrix) (vertices []Point) {
	line := makePolyline(s)
	for _, v := range line.vertices {
		vertices = append(vertices, Point{m.MulVector(v.Vector).Normalize()})
	}
	return
}
Esempio n. 2
0
func PointFromFrame(m r3.Matrix, q Point) Point {
	return Point{m.MulVector(q.Vector)}
}