• 矢量



    image

    1. 概念

    矢量表示的是方向与大小,并不表示位置


    1)矢量的分量--components

    image



    2)矢量--vector

    image


    3)矢量的模--magnitude

    The magnitude or length of a vector r is written

    image


    4)位置矢量--Position Vectors

    Given any point P(x, y, z), a position vector p is created by assuming that P is the vector’s head and the origin is its tail. As the tail coordinates are (0, 0, 0) the vector’s components are x, y, z


    5)单位矢量--Unit Vectors

    image





    2. 操作

    1)缩放--Scaling a Vector

    image


    2)加减--Vector Addition and Subtraction

    image

    image  image


    3)单位化

    image


    4)笛卡尔矢量--Cartesian Vectors

    A Cartesian vector is constructed from three unit vectors: i, j and k, aligned with the x-, y- and z-axis, respectively:

    image

    By employing the rules of vector addition and subtraction, we can compose a vector r by summing three scaled Cartesian unit vectors as follows:

    image 

    相等于

    image

    image



    5)标量积--Scalar Product/Dot Product

    image


    image


    在计算机图形学中的应用点:

    (1) 计算灯光与表面的法线之间的夹角

    (2) 判断三角面的朝向是正面,还是背面

    (3) 三维空间中的三角形面积计算

    image



    6)叉积--Vector Product/Cross Product


    image


    image



    image

    image

    注意:叉积不满足交换律

    image

               叉积在三维世界中需要遵守右手规则


    在计算机图形学中的应用点:

    (1) 三角形表面的法线计算

    (2) 二维空间中的三角形面积计算

    image

    image

  • 相关阅读:
    C# 合并PDF文件
    安装smb服务
    提取SQL中使用到的表
    带百分比(白色)的环行图
    白色外边圆点折线图
    仪表盘不带数值渐变
    带圆点的仪表盘
    大半园仪表盘
    双层环形图外面的环是一个1:1的图片在外面加了一个旋转动画
    白色背景,顶部白色大圆点的柱状图
  • 原文地址:https://www.cnblogs.com/gispathfinder/p/16254880.html
Copyright © 2020-2023  润新知