NAME
Ogre::Vector3
SYNOPSIS
use Ogre;
use Ogre::Vector3;
# (for now see examples/README.txt)
DESCRIPTION
See the online API documentation at http://www.ogre3d.org/docs/api/html/classOgre_1_1Vector3.html
Note: this Perl binding is currently experimental and subject to API changes.
CLASS METHODS
Ogre::Vector3->new(...)
Parameter types
Returns
Ogre::Vector3->DESTROY()
This method is called automatically; don't call it yourself.
\&eq_xs
This is an operator overload method; don't call it yourself.
\&plus_xs
This is an operator overload method; don't call it yourself.
\&mult_xs
This is an operator overload method; don't call it yourself.
\&neg_xs
This is an operator overload method; don't call it yourself.
INSTANCE METHODS
$obj->length()
Returns
- Real
$obj->squaredLength()
Returns
- Real
$obj->distance($rhs)
Parameter types
Returns
- Real
$obj->squaredDistance($rhs)
Parameter types
Returns
- Real
$obj->dotProduct($vec)
Parameter types
Returns
- Real
$obj->absDotProduct($vec)
Parameter types
Returns
- Real
$obj->normalise()
Returns
- Real
$obj->crossProduct($rkVector)
Parameter types
Returns
$obj->midPoint($rkVector)
Parameter types
Returns
$obj->makeFloor($cmp)
Parameter types
Returns
- void
$obj->makeCeil($cmp)
Parameter types
Returns
- void
$obj->perpendicular()
Returns
$obj->randomDeviant($angle, $up=&Vector3::ZERO)
Parameter types
Returns
$obj->getRotationTo($dest, $fallbackAxis=&Vector3::ZERO)
Parameter types
Returns
$obj->isZeroLength()
Returns
- bool
$obj->normalisedCopy()
Returns
$obj->reflect($normal)
Parameter types
Returns
$obj->positionEquals($rhs, $tolerance=0.001)
Parameter types
Returns
- bool
$obj->positionCloses($rhs, $tolerance=0.001)
Parameter types
Returns
- bool
$obj->directionEquals($rhs, $tolerance)
Parameter types
Returns
- bool
$obj->x()
Returns
- Real
$obj->y()
Returns
- Real
$obj->z()
Returns
- Real
$obj->setX($x)
Parameter types
Returns
- void
$obj->setY($y)
Parameter types
Returns
- void
$obj->setZ($z)
Parameter types
Returns
- void
AUTHOR
Scott Lanning <slanning@cpan.org>
For licensing information, see README.txt .