Maths - sfvec2f

This class can represent a 2D vector. For instance a point on a plane or on a 2D texture.

The class has methods to add, subtract, (cross and dot) multiply with other vectors. Also many other methods, including the ability to load and save to from VRML and x3d

There are 3 versions available depending on language:

See also the following related classes

The full source code is available on Sourceforge here:


metadata block
see also:

 

Correspondence about this page

Book Shop - Further reading.

Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them.

cover Mathematics for 3D game Programming - Includes introduction to Vectors, Matrices, Transforms and Trigonometry. (But no euler angles or quaternions). Also includes ray tracing and some linear & rotational physics also collision detection (but not collision response).

Terminology and Notation

Specific to this page here:

 

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2017 Martin John Baker - All rights reserved - privacy policy.