• This topic has 5 replies, 3 voices, and was last updated 4 years ago by 6君.
Viewing 2 reply threads
  • Author
    Posts
    • #3508 Score: 0
      6君
      Participant
      1 pt

      作业2:未知报错

      Attachments:
      You must be logged in to view attached files.
    • #3513 Score: 0
      clarence
      Participant
      -2 pt

      你用了不同维度的矩阵来运算

      • #3567 Score: 0
        6君
        Participant
        1 pt

        Q应该是三维向量,叉乘只接受两个三维向量,但是这里只给了xy,z是谁呢

        Attachments:
        You must be logged in to view attached files.
        • #3582 Score: 0
          戴皓天
          Participant
          9 pts

          其实随便取就行,我的做法是把原本的z传过来,你直接给z赋0也行,因为insideTriangle这个函数本来就相当于在一个平面内判断某个点是不是在三角形内部的

          • #3583 Score: 0
            6君
            Participant
            1 pt

            嗯嗯,最开始的疑惑是它这个函数明明实在二维平面判断却传入的是三维的向量

    • #3532 Score: 0
      戴皓天
      Participant
      9 pts

      你矩阵运算不符合规范,比如3X3矩阵和4X4矩阵相乘了
      仔细看一下吧,或者分段注释代码,看下哪段被注释掉后不会报错

Viewing 2 reply threads
  • You must be logged in to reply to this topic.