亚洲动漫在线观看-亚洲动漫第一页-亚洲丁香婷婷-亚洲丶国产丶欧美一区二区三区-亚洲第一综合网站-亚洲第一永久色

HermiteSpline

厄米樣條曲線是三次插值樣條曲線。必須為每個(gè)控制點(diǎn)定義點(diǎn)、傳入切線、傳出切線和時(shí)間。輸出切線是為點(diǎn)[0,n-2]定義的,而輸入切線是為點(diǎn)[1,n-1]定義的。例如,在points[i]points[i + 1]之間插入曲線段時(shí),點(diǎn)處的切線分別為outTangents[i]inTangents[i]
new HermiteSpline(options)
Parameters:
options (Object)
Name Description
options.times
Array.<Number>
在每個(gè)點(diǎn)上嚴(yán)格遞增的、無單位的浮點(diǎn)時(shí)間數(shù)組。這些值與時(shí)鐘時(shí)間沒有任何關(guān)系。它們是曲線的參數(shù)化。
options.points
Array.<Cartesian3>
Cartesian3控制點(diǎn)數(shù)組。
options.inTangents
Array.<Cartesian3>
每個(gè)控制點(diǎn)的Cartesian3輸入切線數(shù)組。
options.outTangents
Array.<Cartesian3>
每個(gè)控制點(diǎn)的Cartesian3傳出切線數(shù)組。
Example
// Create a G<sup>1</sup> continuous Hermite spline
var times = [ 0.0, 1.5, 3.0, 4.5, 6.0 ];
var spline = new bmgl.HermiteSpline({
    times : times,
    points : [
        new bmgl.Cartesian3(1235398.0, -4810983.0, 4146266.0),
        new bmgl.Cartesian3(1372574.0, -5345182.0, 4606657.0),
        new bmgl.Cartesian3(-757983.0, -5542796.0, 4514323.0),
        new bmgl.Cartesian3(-2821260.0, -5248423.0, 4021290.0),
        new bmgl.Cartesian3(-2539788.0, -4724797.0, 3620093.0)
    ],
    outTangents : [
        new bmgl.Cartesian3(1125196, -161816, 270551),
        new bmgl.Cartesian3(-996690.5, -365906.5, 184028.5),
        new bmgl.Cartesian3(-2096917, 48379.5, -292683.5),
        new bmgl.Cartesian3(-890902.5, 408999.5, -447115)
    ],
    inTangents : [
        new bmgl.Cartesian3(-1993381, -731813, 368057),
        new bmgl.Cartesian3(-4193834, 96759, -585367),
        new bmgl.Cartesian3(-1781805, 817999, -894230),
        new bmgl.Cartesian3(1165345, 112641, 47281)
    ]
});

var p0 = spline.evaluate(times[0]);
Throws
See:

Members

(readonly) inTangents : Array.<Cartesian3>

每個(gè)控制點(diǎn)的Cartesian3輸入切線數(shù)組。

(readonly) outTangents : Array.<Cartesian3>

每個(gè)控制點(diǎn)的Cartesian3傳出切線數(shù)組。

(readonly) points : Array.<Cartesian3>

Cartesian3控制點(diǎn)數(shù)組。

(readonly) times : Array.<Number>

控制點(diǎn)的時(shí)間數(shù)組。

Methods

(static) createC1(options) → {HermiteSpline}
在每個(gè)控制點(diǎn)的切線相同的情況下創(chuàng)建樣條曲線。曲線至少保證在C1級(jí)。
Parameters:
options (Object)
Name Description
options.times
Array.<Number>
控制點(diǎn)時(shí)間數(shù)組。
options.points
Array.<Cartesian3>
控制點(diǎn)數(shù)組。
options.tangents
Array.<Cartesian3>
控制點(diǎn)處的切線數(shù)組。
Example
var points = [
    new bmgl.Cartesian3(1235398.0, -4810983.0, 4146266.0),
    new bmgl.Cartesian3(1372574.0, -5345182.0, 4606657.0),
    new bmgl.Cartesian3(-757983.0, -5542796.0, 4514323.0),
    new bmgl.Cartesian3(-2821260.0, -5248423.0, 4021290.0),
    new bmgl.Cartesian3(-2539788.0, -4724797.0, 3620093.0)
];

// Add tangents
var tangents = new Array(points.length);
tangents[0] = new bmgl.Cartesian3(1125196, -161816, 270551);
var temp = new bmgl.Cartesian3();
for (var i = 1; i < tangents.length - 1; ++i) {
    tangents[i] = bmgl.Cartesian3.multiplyByScalar(bmgl.Cartesian3.subtract(points[i + 1], points[i - 1], temp), 0.5, new bmgl.Cartesian3());
}
tangents[tangents.length - 1] = new bmgl.Cartesian3(1165345, 112641, 47281);

var spline = bmgl.HermiteSpline.createC1({
    times : times,
    points : points,
    tangents : tangents
});
Throws
(static) createClampedCubic(options) → {HermiteSpline|LinearSpline}
創(chuàng)建夾緊的三次樣條曲線。生成內(nèi)部控制點(diǎn)的切線,以在C2類中創(chuàng)建曲線。
Parameters:
options (Object)
Name Description
options.times
Array.<Number>
控制點(diǎn)時(shí)間數(shù)組。
options.points
Array.<Cartesian3>
控制點(diǎn)數(shù)組。
options.firstTangent
Cartesian3
第一個(gè)控制點(diǎn)的外切線。
options.lastTangent
Cartesian3
最后一個(gè)控制點(diǎn)的傳入切線。
Example
// Create a clamped cubic spline above the earth from Philadelphia to Los Angeles.
var spline = bmgl.HermiteSpline.createClampedCubic({
    times : [ 0.0, 1.5, 3.0, 4.5, 6.0 ],
    points : [
        new bmgl.Cartesian3(1235398.0, -4810983.0, 4146266.0),
        new bmgl.Cartesian3(1372574.0, -5345182.0, 4606657.0),
        new bmgl.Cartesian3(-757983.0, -5542796.0, 4514323.0),
        new bmgl.Cartesian3(-2821260.0, -5248423.0, 4021290.0),
        new bmgl.Cartesian3(-2539788.0, -4724797.0, 3620093.0)
    ],
    firstTangent : new bmgl.Cartesian3(1125196, -161816, 270551),
    lastTangent : new bmgl.Cartesian3(1165345, 112641, 47281)
});
Throws
(static) createNaturalCubic(options) → {HermiteSpline|LinearSpline}
創(chuàng)建自然三次樣條曲線。生成控制點(diǎn)的切線,以在C2類中創(chuàng)建曲線。
Parameters:
options (Object)
Name Description
options.times
Array.<Number>
控制點(diǎn)時(shí)間數(shù)組。
options.points
Array.<Cartesian3>
控制點(diǎn)數(shù)組。
Example
// Create a natural cubic spline above the earth from Philadelphia to Los Angeles.
var spline = bmgl.HermiteSpline.createNaturalCubic({
    times : [ 0.0, 1.5, 3.0, 4.5, 6.0 ],
    points : [
        new bmgl.Cartesian3(1235398.0, -4810983.0, 4146266.0),
        new bmgl.Cartesian3(1372574.0, -5345182.0, 4606657.0),
        new bmgl.Cartesian3(-757983.0, -5542796.0, 4514323.0),
        new bmgl.Cartesian3(-2821260.0, -5248423.0, 4021290.0),
        new bmgl.Cartesian3(-2539788.0, -4724797.0, 3620093.0)
    ]
});
Throws
clampTime(time) → {Number}
將給定的時(shí)間鉗制到樣條曲線所覆蓋的周期。
Parameters:
time (Number) 時(shí)間。
evaluate(time, result) → {Cartesian3}
在給定時(shí)間計(jì)算曲線。
Parameters:
time (Number) 評(píng)估曲線的時(shí)間。
result (Cartesian3) 存儲(chǔ)結(jié)果的對象。
Throws
  • DeveloperError : 時(shí)間必須在[t0, tn]范圍內(nèi),其中t0是數(shù)組times中的第一個(gè)元素,tn是數(shù)組times中的最后一個(gè)元素。
findTimeInterval(time) → {Number}
times中查找索引i,以便參數(shù)time在間隔[times[i], times[i + 1]]中。
Parameters:
time (Number) 時(shí)間。
Throws
  • DeveloperError : 時(shí)間必須在[t0, tn]范圍內(nèi),其中t0是數(shù)組times中的第一個(gè)元素,tn是數(shù)組times中的最后一個(gè)元素。
wrapTime(time) → {Number}
將給定時(shí)間包裝到樣條曲線所覆蓋的周期。
Parameters:
time (Number) 時(shí)間。
主站蜘蛛池模板: 色综合亚洲天天综合网站 | 2012中文字幕中字视频 | 女高h| 日本免费久久久久久久网站 | 日产免费自线一二区 | 美女的隐私无遮挡撒尿 | 日本在线国产 | 亚洲高清国产拍精品动图 | 大片毛片女女女女女女女 | 亚洲AV无码乱码在线观看浪潮 | 免费网站看v片在线成人国产系列 | 国产精品免费视频能看 | 美女用手扒开粉嫩的屁股 | 国产精品99久久免费观看 | 欧美另类videos另类粗暴 | 99r视频 | 国产小视频在线免费观看 | 特大黑人娇小亚洲女mp4 | 超高清欧美同性videos | 日韩 欧美 国产 亚洲 中文 | 美女被草哭 | 欧美a级完整在线观看 | 色网免费观看 | 校花在公车上被内射好舒服 | 国产一区二区在线免费观看 | 亚洲精品91大神在线观看 | 成年男女免费视频观看性 | 91嫩草私人成人亚洲影院 | 91大神亚洲影视在线 | 国产一区二区三区在线看 | 色综合久久夜色精品国产 | 韩国三级理韩国三级理人伦 | 美女口述又粗又大感觉 | 国产午夜精品久久理论片 | 日本www视频在线观看 | 视频一区二区 村上凉子 | 免费刷10000名片赞网站 | 青青草99热这里都是精品 | 精品日韩视频 | 精品亚洲午夜久久久久 | 奶大逼紧 |