Forráskód Böngészése

renaming Curve3 functions

David Catuhe 10 éve
szülő
commit
e17aae5f6d

+ 2 - 2
Babylon/Math/babylon.math.js

@@ -2534,7 +2534,7 @@ var BABYLON;
             this._points = points;
         }
         // QuadraticBezier(origin_V3, control_V3, destination_V3 )
-        Curve3.QuadraticBezier = function (v0, v1, v2, nbPoints) {
+        Curve3.CreateQuadraticBezier = function (v0, v1, v2, nbPoints) {
             nbPoints = nbPoints > 2 ? nbPoints : 3;
             var bez = new Array();
             var step = 1 / nbPoints;
@@ -2548,7 +2548,7 @@ var BABYLON;
             return new Curve3(bez);
         };
         // CubicBezier(origin_V3, control1_V3, control2_V3, destination_V3)
-        Curve3.CubicBezier = function (v0, v1, v2, v3, nbPoints) {
+        Curve3.CreateCubicBezier = function (v0, v1, v2, v3, nbPoints) {
             nbPoints = nbPoints > 3 ? nbPoints : 4;
             var bez = new Array();
             var step = 1 / nbPoints;

+ 2 - 2
Babylon/Math/babylon.math.ts

@@ -3193,7 +3193,7 @@
         private _points: Vector3[];
 
         // QuadraticBezier(origin_V3, control_V3, destination_V3 )
-        public static QuadraticBezier(v0: Vector3, v1: Vector3, v2: Vector3, nbPoints: number): Curve3 {
+        public static CreateQuadraticBezier(v0: Vector3, v1: Vector3, v2: Vector3, nbPoints: number): Curve3 {
             nbPoints = nbPoints > 2 ? nbPoints : 3;
             var bez = new Array<Vector3>();
             var step = 1 / nbPoints;
@@ -3208,7 +3208,7 @@
         }
 
         // CubicBezier(origin_V3, control1_V3, control2_V3, destination_V3)
-        public static CubicBezier(v0: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, nbPoints: number): Curve3 {
+        public static CreateCubicBezier(v0: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, nbPoints: number): Curve3 {
             nbPoints = nbPoints > 3 ? nbPoints : 4;
             var bez = new Array<Vector3>();
             var step = 1 / nbPoints;

+ 2 - 2
babylon.2.1-alpha.debug.js

@@ -2539,7 +2539,7 @@ var __extends = this.__extends || function (d, b) {
             this._points = points;
         }
         // QuadraticBezier(origin_V3, control_V3, destination_V3 )
-        Curve3.QuadraticBezier = function (v0, v1, v2, nbPoints) {
+        Curve3.CreateQuadraticBezier = function (v0, v1, v2, nbPoints) {
             nbPoints = nbPoints > 2 ? nbPoints : 3;
             var bez = new Array();
             var step = 1 / nbPoints;
@@ -2553,7 +2553,7 @@ var __extends = this.__extends || function (d, b) {
             return new Curve3(bez);
         };
         // CubicBezier(origin_V3, control1_V3, control2_V3, destination_V3)
-        Curve3.CubicBezier = function (v0, v1, v2, v3, nbPoints) {
+        Curve3.CreateCubicBezier = function (v0, v1, v2, v3, nbPoints) {
             nbPoints = nbPoints > 3 ? nbPoints : 4;
             var bez = new Array();
             var step = 1 / nbPoints;

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 1 - 1
babylon.2.1-alpha.js