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

p2p网站开发软件开发工具的发展趋势是

p2p网站开发,软件开发工具的发展趋势是,什么是响应网站设计,集团网站建设特点助君Quaternion又称为四元数#xff0c;由x、y、z和w这4个分量组成#xff0c;属于struct类型。 在Unity中#xff0c;用Quaternion来存储和表示对象的旋转角度。 Quaternion类实例属性 在Quaternion类中#xff0c;涉及的实例属性主要有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实例的朝向。 基本语法 1、public void SetLookRotation(Vector3 view); 2、public 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方法欧拉角对应的四元数 基本语法 1、public static Quaternion Euler(Vector3 euler); 2、public 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的朝向 基本语法 1、public static Quaternion LookRotation(Vector3 forward); 2、public 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://www.hkea.cn/news/14481634/

相关文章:

  • 定制网站开发系统wordpress 语录小程序
  • 网站编辑信息怎么做出国劳务信息
  • 旅游网站建设的结论软文推广有哪些
  • 互联二维码生成器陕西关键词优化推荐
  • 九易建网站的建站流程黄骅市旅游景点有哪些
  • 消防做ccc去那个网站电子商务网页设计与网站建设
  • 国外营销型网站怎样做网站的优化工作
  • 卓业网站建设新浪博客怎样上传wordpress
  • 高端网站建设与制作wordpress 配置邮箱
  • 网站项目需求分析网站建设价格是多少
  • 上海网站建设上海广告外链购买平台
  • 建设银行在网站上开通短信提醒wordpress怎么编辑模板
  • 道路建设网站北京网站设计实力乐云践新
  • 电商网站开发报告网站建设需要在网络上如何实现
  • 网站建设开发 脚本语言优速网站建设
  • 网站的性能特点移动互联网应用程序管理情况
  • 企业网站的建设要注意什么中国建设银行的官方网站
  • 夜场酒吧娱乐ktv类企业网站源码怎么做自己的设计网站
  • 网站及数据库怎么做后门做网站优化时 链接名称"首页"有必要添加nofollow吗?
  • 兰州市住房保障和城乡建设局网站文本网站代码空两格怎么做
  • wordpress文章自动tag石家庄seo
  • 内网建立网站网站开发软件排名
  • 网站开发师贴吧品牌整合营销机构
  • 马鞍山市网站建设公司大型外包软件公司有哪些
  • eclipse做企业网站网站建设费用兴田德润团队
  • 一元建站想自己做衣服上哪个网站学
  • 网页设计与网站建设标准数据html5教程电子书
  • 做网站的视频教学深圳定制钻戒哪里好推荐
  • 网站搭建定制西安的网页设计公司
  • 网站建设公司小程序广州seo排名优化