Microsoft.Photosynth.Math.Quaternion class

Version 0.1 - Back to Photosynth Javascript API Documentation

Overview

A Quaternion class that can be used to represent rotations.

Constructors

Signature Description
Quaternion() Creates an identity quaternion i.e. x = y = z = 0, w = 1
Quaternion(x, y, z ,w) Creates a quaternion with its x,y,z,w properties set to the x,y,z,w values passed into the constructor

Properties

Name Type Description
x Number The x component of the quaternion
y Number The y component of the quaternion
z Number The z component of the quaternion
w Number The w component of the quaternion

Methods

Name and Signature Return Type Description

Events

Name Description