NAME

Ogre::Quaternion

SYNOPSIS

use Ogre;
use Ogre::Quaternion;
# (for now see examples/README.txt)

DESCRIPTION

See the online API documentation at http://www.ogre3d.org/docs/api/html/classOgre_1_1Quaternion.html

Note: this Perl binding is currently experimental and subject to API changes.

CLASS METHODS

Ogre::Quaternion->new(...)

Parameter types

... : this varies... (sorry, look in the .xs file)

Returns

Quaternion *

Ogre::Quaternion->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->FromRotationMatrix($kRot)

Parameter types

$kRot : Matrix3 *

Returns

void

$obj->ToRotationMatrix($kRot)

Parameter types

$kRot : Matrix3 *

Returns

void

$obj->FromAngleAxis($rfAngle, $rkAxis)

Parameter types

$rfAngle : Degree (or Radian) *
$rkAxis : Vector3 *

Returns

void

$obj->ToAngleAxis($rfAngle, $rkAxis)

Parameter types

$rfAngle : Degree (or Radian) *
$rkAxis : Vector3 *

Returns

void

$obj->FromAxes($xAxis, $yAxis, $zAxis)

Parameter types

$xAxis : Vector3 *
$yAxis : Vector3 *
$zAxis : Vector3 *

Returns

void

$obj->ToAxes($xAxis, $yAxis, $zAxis)

Parameter types

$xAxis : Vector3 *
$yAxis : Vector3 *
$zAxis : Vector3 *

Returns

void

$obj->xAxis()

Returns

Vector3 *

$obj->yAxis()

Returns

Vector3 *

$obj->zAxis()

Returns

Vector3 *

$obj->Dot($rkQ)

Parameter types

$rkQ : Quaternion *

Returns

Real

$obj->Norm()

Returns

Real

$obj->normalise()

Returns

Real

$obj->getRoll($bool reprojectAxis=true)

Parameter types

$bool reprojectAxis=true : (no info available)

Returns

Radian *

$obj->getPitch($bool reprojectAxis=true)

Parameter types

$bool reprojectAxis=true : (no info available)

Returns

Radian *

$obj->getYaw($bool reprojectAxis=true)

Parameter types

$bool reprojectAxis=true : (no info available)

Returns

Radian *

$obj->equals($rhs, $tolerance)

Parameter types

$rhs : Quaternion *
$tolerance : Degree (or Radian) *

Returns

bool

$obj->w()

Returns

Real

$obj->x()

Returns

Real

$obj->y()

Returns

Real

$obj->z()

Returns

Real

$obj->setW($w)

Parameter types

$w : Real

Returns

void

$obj->setX($x)

Parameter types

$x : Real

Returns

void

$obj->setY($y)

Parameter types

$y : Real

Returns

void

$obj->setZ($z)

Parameter types

$z : Real

Returns

void

AUTHOR

Scott Lanning <slanning@cpan.org>

For licensing information, see README.txt .