Flash初哥

November 29, 2009

dot product

Filed under: Computer Graphic,網上收隼 — Tags: , — KAV @ 5:51 am

In Euclidean geometry, the dot product, length, and angle are related. For a vector a, the dot product a · a is the square of the length of a, or

|\mathbf{a}| = \sqrt{\mathbf{a} \cdot \mathbf{a}}

where |a| denotes the length (magnitude) of a. More generally, if b is another vector

 \mathbf{a} \cdot \mathbf{b} = |\mathbf{a}| \, |\mathbf{b}| \cos \theta \,

where |a| and |b| denote the length of a and b and θ is the angle between them.

(more…)

November 28, 2009

C++中vector类型简介

Filed under: 網上收隼 — Tags: , — KAV @ 11:04 am

from : http://blog.163.com/cc_bei_jing/blog/static/77154120200941195933481/


标准库Vector类型

使用需要的头文件:

#include 

Vector:Vector 是一个类模板。不是一种数据类型。 Vector是一种数据类型。

  (more...)

Powered by WordPress