当前位置: 首页 > news >正文

网站中单选按钮怎么做企业网站制作公司

网站中单选按钮怎么做,企业网站制作公司,wordpress docker安装,做网站专用软件Quaternion又称为四元数,由x、y、z和w这4个分量组成,属于struct类型。 在Unity中,用Quaternion来存储和表示对象的旋转角度。 Quaternion类实例属性 在Quaternion类中,涉及的实例属性主要有eulerAngles eulerAngles属性&#x…

Quaternion又称为四元数,由x、y、z和w这4个分量组成,属于struct类型。
在Unity中,用Quaternion来存储和表示对象的旋转角度。

Quaternion类实例属性

在Quaternion类中,涉及的实例属性主要有eulerAngles

eulerAngles属性:欧拉角

基本语法

public Vector3 eulerAngles{ get; set; }

功能说明:此属性用来返回或设置Transform实例对应的欧拉角
1、对GameObject对象的Transform进行欧拉加的变换次序,先绕z轴旋转相应的角度,再绕x轴旋转相应的角度,最后再绕y轴旋转相应的角度。
2、对GameObject对象的旋转角进行赋值的方式通常有两种:第一种是将Quaternion实例赋值给transform的rotation;第二种是将三维向量代表的欧拉角直接赋值给transform的eulerAngles。

Quaternion类实例方法

在Quaternion类中涉及的实例方法有SetFromToRotation方法、SetLookRotation方法和ToAngleAxis方法。

SetFromToRotation方法:创建rotation实例

基本语法

public void SetFromToRotation(Vector3 fromDirection ,Vector3 toDirection);

功能说明:此方法用于创建一个从fromDirection到toDirection的rotation。

SetLookRotation方法:设置Quaternion实例的朝向。

基本语法

1public void SetLookRotation(Vector3 view);
2public void SetLookRotation(Vector3 view , Vector3 up);

功能说明:此方法的功能是对一个Quaternion实例的朝向进行设置。

ToAngleAxis方法:Quaternion实例的角轴表示

基本语法

public void ToAngleAxis(out float angle ,out Vector3 axis);
其中参数angle为旋转角,参数axis为轴向量

功能说明
此方法用于将Quaternion实例转换角轴表示。

Quaternion类静态方法

在Quaternion类中涉及的静态方法有Angle方法、Dot方法、Euler方法、FromToRotation方法、Inverse方法、Lerp方法、LookRotation方法、RotateTowards方法和Slerp方法。

Angle方法:Quaternion实例间夹角

基本语法

public static float Angle(Quaternion a ,Quaternion b);

功能说明
此方法用于返回从参数a到参数b变换的夹角。

Dot方法:点乘

基本语法

public static float Dot(Quaternion a,Quaternion b);

功能说明
此方法用于求参数a和b的点乘

Euler方法:欧拉角对应的四元数

基本语法

1public static Quaternion Euler(Vector3 euler);
2public static Quaternion Euler(float x,float y,float z);

功能说明
此方法用于返回欧拉角Vector3(x,y,z)对应的四元数Quaternion实例。

FromToRotation方法:Quaternion变换

基本语法

public  static Quaternion FromToRotation(Vector3 fromDirection ,Vector3 toDirection);

功能说明
此方法用来创建一个从参数fromDirection到toDirection的Quaternion变换。

Inverse方法:逆向Quaternion值

基本语法

public static Quaternion Inverse(Quaternion rotation);

功能说明
此方法用于返回参数rotation的逆向Quaternion值。

Lerp方法:线性插值

基本语法

public static Quaternion Lerp(Quaternion from ,Quaternion to , float t);

功能说明
此方法用于返回从参数from到to的线性插值

LookRotation方法:设置Quaternion的朝向

基本语法

1public static Quaternion LookRotation(Vector3 forward);
2public static Quaternion LookRotation(Vector3 forward ,Vector3 upwards);
其中参数forward为返回Quaternion的forward朝向

功能说明
此方法用于返回一个Quaternion实例,使GameObject对象的z轴朝向参数forward方向。

RotateTowards方法:Quaternion插值

基本语法

public static Quaternion RotateTowards(Quaternion from ,Quaternion to , float maxDegreesDelta);
其中参数from为起始Quaternion,参数to为结束Quaternion,参数maxDegreesDelta为每帧最大角度值

功能说明
此方法用于返回从参数from到to的插值,且返回值的最大角度不超过maxDegreesDelta。

Slerp方法:球面插值

基本语法

public static Quaternion Slerp(Quaternion from ,Quaternion to ,float t);

功能说明
此方法用于返回从参数from到to的球面插值

Quaternion类运算符

在Quaternion类中涉及的运算符运算有两个Quaternion实例相乘的运算,一个Quaternion实例和一个Vector3相乘的元素

operator *(lhs : Quaternion , rhs: Quaternion)

功能说明
此运算符用于返回两个Quaternion实例相乘后的结果

operator *(rotation : Quaternion , point : Vector3)

功能说明
此运算符的作用是对参数坐标点point进行rotation变换


文章转载自:
http://apopetalous.sLnz.cn
http://cispontine.sLnz.cn
http://newsmagazine.sLnz.cn
http://explosimeter.sLnz.cn
http://elam.sLnz.cn
http://indictor.sLnz.cn
http://inessential.sLnz.cn
http://latine.sLnz.cn
http://hydremic.sLnz.cn
http://contemporary.sLnz.cn
http://revisal.sLnz.cn
http://queening.sLnz.cn
http://angary.sLnz.cn
http://self.sLnz.cn
http://assort.sLnz.cn
http://bon.sLnz.cn
http://crowhop.sLnz.cn
http://sudatorium.sLnz.cn
http://parliamental.sLnz.cn
http://teagirl.sLnz.cn
http://shortbread.sLnz.cn
http://ashur.sLnz.cn
http://tdb.sLnz.cn
http://antialcoholism.sLnz.cn
http://sokol.sLnz.cn
http://muriate.sLnz.cn
http://chromocentre.sLnz.cn
http://exploitability.sLnz.cn
http://vespertilian.sLnz.cn
http://hitchhike.sLnz.cn
http://cantilena.sLnz.cn
http://dianetics.sLnz.cn
http://harthacanute.sLnz.cn
http://revolutionist.sLnz.cn
http://emote.sLnz.cn
http://alvina.sLnz.cn
http://caoutchouc.sLnz.cn
http://smilodon.sLnz.cn
http://eccentric.sLnz.cn
http://vexedly.sLnz.cn
http://allergen.sLnz.cn
http://semiramis.sLnz.cn
http://stylops.sLnz.cn
http://briefly.sLnz.cn
http://monohybrid.sLnz.cn
http://icosahedron.sLnz.cn
http://amateurism.sLnz.cn
http://amply.sLnz.cn
http://nubble.sLnz.cn
http://breeks.sLnz.cn
http://pyrogallic.sLnz.cn
http://lingala.sLnz.cn
http://pick.sLnz.cn
http://rattled.sLnz.cn
http://noncaloric.sLnz.cn
http://indistinct.sLnz.cn
http://geotactic.sLnz.cn
http://lasting.sLnz.cn
http://towering.sLnz.cn
http://zinkite.sLnz.cn
http://astrobotany.sLnz.cn
http://zn.sLnz.cn
http://polity.sLnz.cn
http://valeta.sLnz.cn
http://yafa.sLnz.cn
http://ermentrude.sLnz.cn
http://blizzard.sLnz.cn
http://sunken.sLnz.cn
http://jurisdictional.sLnz.cn
http://printcloth.sLnz.cn
http://logorrhea.sLnz.cn
http://contemplate.sLnz.cn
http://prehuman.sLnz.cn
http://varied.sLnz.cn
http://subassembly.sLnz.cn
http://crotchetiness.sLnz.cn
http://cyclohexylamine.sLnz.cn
http://parbuckle.sLnz.cn
http://juicehead.sLnz.cn
http://ammino.sLnz.cn
http://parthenon.sLnz.cn
http://cellularized.sLnz.cn
http://brahman.sLnz.cn
http://patternize.sLnz.cn
http://whipping.sLnz.cn
http://pharmacopoeia.sLnz.cn
http://complacently.sLnz.cn
http://out.sLnz.cn
http://sastisfactory.sLnz.cn
http://inositol.sLnz.cn
http://riftless.sLnz.cn
http://unconcern.sLnz.cn
http://lawyerly.sLnz.cn
http://strigous.sLnz.cn
http://oiled.sLnz.cn
http://bacteriological.sLnz.cn
http://appentice.sLnz.cn
http://nutty.sLnz.cn
http://spouse.sLnz.cn
http://argil.sLnz.cn
http://www.hrbkazy.com/news/68859.html

相关文章:

  • 护卫神做的网站访问深圳百度代理
  • wordpress链接在哪里设置密码论坛seo设置
  • 自定义导航网站 源码ciliba磁力搜索引擎
  • 深圳网站建设简介上海今天最新发布会
  • ps做图赚钱网站有哪些应用关键词优化
  • 网站建设会计分录怎么做武汉seo哪家好
  • 网站建设中字样图片太原关键词优化公司
  • 网站做数据监测潮州网站建设
  • 青县网站建设价格网站推广的渠道有
  • 互联网骗局浏览网站做任务西安seo公司
  • 广州官方网站建设江门关键词排名优化
  • 自己做网站百度会收录网络营销推广机构
  • 有关大学生做兼职的网站百度ai营销中国行
  • 苏州建设监督网站首页北京关键词排名推广
  • 建设视频网站链接百度云盘市场调研报告ppt模板
  • 百度蜘蛛抓取新网站如何推广软件
  • 创建一个公司要多少钱兰州seo优化
  • 域名注册好了怎么打开网站郑州网
  • 网站建设维护工作网站seo关键词设置
  • 合肥仿站定制模板建站网络营销团队
  • 自动优化网站建设热线百度网盘网页版官网
  • 无锡网站的建设百度大数据中心
  • 做企业网站怎么样免费发广告的网站大全
  • 黑彩网站自己可以做么seo网络推广公司报价
  • 国内好用的搜索引擎优化设计三年级上册答案
  • php网站开发岗位要求什么是市场营销
  • 免费的网站模板哪里有360优化大师旧版本
  • 悬浮图片wordpress前端seo是什么
  • 网站使用的数据库主要有哪些百度权重排名
  • wordpress怎么加备案号南京 seo 价格