Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: third_party/go/src/golang.org/x/mobile/f32/vec3.go

Issue 1275153002: Remove third_party/golang.org/x/mobile as it is no longer used with Go 1.5. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Remove golang.org/x/mobile Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/go/src/golang.org/x/mobile/f32/vec3.go
diff --git a/third_party/go/src/golang.org/x/mobile/f32/vec3.go b/third_party/go/src/golang.org/x/mobile/f32/vec3.go
deleted file mode 100644
index f966ce64f7ff7b0c05d17de7401d2db137861ce2..0000000000000000000000000000000000000000
--- a/third_party/go/src/golang.org/x/mobile/f32/vec3.go
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2014 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package f32
-
-import "fmt"
-
-type Vec3 [3]float32
-
-func (v Vec3) String() string {
- return fmt.Sprintf("Vec3[% 0.3f, % 0.3f, % 0.3f]", v[0], v[1], v[2])
-}
-
-func (v *Vec3) Normalize() {
- sq := v.Dot(v)
- inv := 1 / Sqrt(sq)
- v[0] *= inv
- v[1] *= inv
- v[2] *= inv
-}
-
-func (v *Vec3) Sub(v0, v1 *Vec3) {
- v[0] = v0[0] - v1[0]
- v[1] = v0[1] - v1[1]
- v[2] = v0[2] - v1[2]
-}
-
-func (v *Vec3) Add(v0, v1 *Vec3) {
- v[0] = v0[0] + v1[0]
- v[1] = v0[1] + v1[1]
- v[2] = v0[2] + v1[2]
-}
-
-func (v *Vec3) Mul(v0, v1 *Vec3) {
- v[0] = v0[0] * v1[0]
- v[1] = v0[1] * v1[1]
- v[2] = v0[2] * v1[2]
-}
-
-func (v *Vec3) Cross(v0, v1 *Vec3) {
- v[0] = v0[1]*v1[2] - v0[2]*v1[1]
- v[1] = v0[2]*v1[0] - v0[0]*v1[2]
- v[2] = v0[0]*v1[1] - v0[1]*v1[0]
-}
-
-func (v *Vec3) Dot(v1 *Vec3) float32 {
- return v[0]*v1[0] + v[1]*v1[1] + v[2]*v1[2]
-}
« no previous file with comments | « third_party/go/src/golang.org/x/mobile/f32/table.go ('k') | third_party/go/src/golang.org/x/mobile/f32/vec4.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698