math/ vector3.bi

Summary
math/ vector3.bi
LicenseCopyright © 2009, FreeBASIC Extended Library Development Group
Functions
default constructor
component constructor
copy constructor
copy operator let
Magnitude
Normalize
Normal
Dot
Cross
DistanceReturns the distance between the endpoints of the vector and another.
AngleBetweenReturns the angle between the vector and another.
DistanceReturns the distance between the endpoints of two vectors.
AngleBetweenReturns the angle between two vectors.
global operator - (negate)Returns a * -1.
global operator +Returns a vector whose components are the sum of the corresponding components of two vectors.
global operator +Returns a vector whose components are the sum of the corresponding components of a vector and a scalar.
global operator -Returns a vector whose components are the difference of the corresponding components of two vectors.
global operator -Returns a vector whose components are the difference of the corresponding components of a vector and a scalar.
global operator *Returns a vector whose components are the product of the corresponding components of two vectors.
global operator *Returns a vector whose components are the product of the corresponding components of a vector and a scalar.
global operator /Returns a vector whose components are the quotient of the corresponding components of two vectors.
global operator /Returns a vector whose components are the quotient of the corresponding components of a vector and a scalar.

License

Copyright © 2009, FreeBASIC Extended Library Development Group

Distributed under the FreeBASIC Extended Library Group license.  See accompanying file LICENSE.txt or copy at http://code.google.com- /p- /fb-extended-lib- /wiki- /License

Functions

default constructor

component constructor

copy constructor

copy operator let

Magnitude

declare const function Magnitude ( ) as double

Normalize

declare sub Normalize ( )

Normal

declare const function Normal () as fbext_Vector3(( T_))

Dot

declare const function Dot (byref v as const fbext_Vector3(( T_))) as double

Cross

declare const function Cross (
   byref v as const fbext_Vector3(( T_))
) as fbext_Vector3(( T_))

Distance

declare const function Distance (
   byref v as const fbext_Vector3(( T_))
) as double

Returns the distance between the endpoints of the vector and another.

AngleBetween

declare const function AngleBetween (
   byref v as const fbext_Vector3(( T_))
) as double

Returns the angle between the vector and another.

Distance

declare function Distance overload (
   byref a as const fbext_Vector3(( T_)),
   byref b as const fbext_Vector3(( T_))
) as double

Returns the distance between the endpoints of two vectors.

AngleBetween

declare function AngleBetween overload (
   byref a as const fbext_Vector3(( T_)),
   byref b as const fbext_Vector3(( T_))
) as double

Returns the angle between two vectors.

global operator - (negate)

Returns a * -1.

global operator +

Returns a vector whose components are the sum of the corresponding components of two vectors.

global operator +

Returns a vector whose components are the sum of the corresponding components of a vector and a scalar.

global operator -

Returns a vector whose components are the difference of the corresponding components of two vectors.

global operator -

Returns a vector whose components are the difference of the corresponding components of a vector and a scalar.

global operator *

Returns a vector whose components are the product of the corresponding components of two vectors.

global operator *

Returns a vector whose components are the product of the corresponding components of a vector and a scalar.

global operator /

Returns a vector whose components are the quotient of the corresponding components of two vectors.

global operator /

Returns a vector whose components are the quotient of the corresponding components of a vector and a scalar.

declare const function Magnitude ( ) as double
declare sub Normalize ( )
declare const function Normal () as fbext_Vector3(( T_))
declare const function Dot (byref v as const fbext_Vector3(( T_))) as double
declare const function Cross (
   byref v as const fbext_Vector3(( T_))
) as fbext_Vector3(( T_))
declare const function Distance (
   byref v as const fbext_Vector3(( T_))
) as double
Returns the distance between the endpoints of the vector and another.
declare const function AngleBetween (
   byref v as const fbext_Vector3(( T_))
) as double
Returns the angle between the vector and another.