Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Vector.cpp
Package: RayTracing Code.rar [view]
Upload User: lhwx1029
Upload Date: 2013-03-07
Package Size: 1173k
Code Size: 8k
Category:
3D Graphic
Development Platform:
Visual C++
- /** 3DGPL *************************************************
- * () *
- * Header for operations on vectors used by the ray *
- * tracer. *
- * *
- * Defines: *
- * V_zero Initialize a vector; *
- * V_vector_coordinates Set the vector's coordinates;*
- * V_vector_points Make a vector from points; *
- * V_set Copy a vector; *
- * V_multiply Multiply by a scalar; *
- * V_scalar_product Find a scalar product; *
- * V_vector_product Find a vector product; *
- * V_sum Sum two vectors; *
- * V_difference Compute difference; *
- * V_unit_vector Compute unit vector; *
- * V_plane Coeffs of a plane equation; *
- * V_vertex_on_plane Checks if in the plane. *
- * *
- * (c) 1995-98 Sergei Savchenko, (savs@cs.mcgill.ca) *
- **********************************************************/
- #include <math.h> /* sqrt */
- #include "vector.h" /* self definition */
- /**********************************************************
- * Initialize a vector to zero. *
- * *
- * RETURNS: Initializeed vector. *
- * -------- *
- **********************************************************/
- float *V_zero(float *vec)
- {
- //一个float型的指针和一个矢量有什么关系