Options
All
  • Public
  • Public/Protected
  • All
Menu

四元数类

class

Quaternion

Hierarchy

  • Quaternion

Index

Constructors

constructor

  • new Quaternion(w?: number, x?: number, y?: number, z?: number): Quaternion
  • Parameters

    • Default value w: number = 0
    • Default value x: number = 0
    • Default value y: number = 0
    • Default value z: number = 0

    Returns Quaternion

Properties

w

w: number

x

x: number

y

y: number

z

z: number

Static QuaternionIdentity

QuaternionIdentity: Quaternion = new Quaternion(1, 0, 0, 0)

单位四元数

static
memberof

Quaternion

Methods

getRotationAngle

  • getRotationAngle(): number

getRotationAxis

normalize

  • normalize(): void

setToRotateAboutAxis

  • setToRotateAboutAxis(axis: Vector3, theta: number): void
  • 绕指定轴旋转

    memberof

    Quaternion

    Parameters

    Returns void

setToRotateAboutX

  • setToRotateAboutX(theta: number): void
  • 绕 X 轴旋转

    memberof

    Quaternion

    Parameters

    • theta: number

    Returns void

setToRotateAboutY

  • setToRotateAboutY(theta: number): void
  • 绕 Y 轴旋转

    memberof

    Quaternion

    Parameters

    • theta: number

    Returns void

setToRotateAboutZ

  • setToRotateAboutZ(theta: number): void
  • 绕 Z 轴旋转

    memberof

    Quaternion

    Parameters

    • theta: number

    Returns void

Static crossProduct

Static dotProduct

Static fromRotationMatrix

Static getAngularDisplacement

Static getConjugate

Static getNorm

Static log

Static negate

Static pow

Static scalarMultiply

Static setObjectToWorldFromEulerAngles

Static setWorldToObjectFromEulerAngles

Static slerp

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc