Skip to content

DualQuaternionクラス定義

export class DualQuaternion {
/**
* Real part of the dual quaternion, represented as a THREE.Quaternion
*/
real: THREE.Quaternion;
/**
* Dual part of the dual quaternion, represented as a THREE.Quaternion
*/
dual: THREE.Quaternion;
/**
* Constructor: Initializes a new DualQuaternion.
* @param real - The real quaternion part.
* @param dual - The dual quaternion part.
*/
constructor(real?: THREE.Quaternion, dual?: THREE.Quaternion);
/**
* Sets the real and dual components of the dual quaternion.
* @param real - The real quaternion part.
* @param dual - The dual quaternion part.
* @returns The current instance.
*/
set(real: THREE.Quaternion, dual: THREE.Quaternion): this;
/**
* Multiplies this dual quaternion by another.
* @param dq - The dual quaternion to multiply with.
* @returns The current instance.
*/
multiply(dq: DualQuaternion): this;
/**
* Normalizes the dual quaternion.
* @returns The current instance.
*/
normalize(): this;
/**
* Copies the values from another dual quaternion.
* @param dq - The dual quaternion to copy from.
* @returns The current instance.
*/
copy(dq: DualQuaternion): this;
/**
* Clones this dual quaternion.
* @returns A new DualQuaternion instance with the same values.
*/
clone(): DualQuaternion;
/**
* Checks if this dual quaternion equals another.
* @param dq - The dual quaternion to compare with.
* @returns True if equal, false otherwise.
*/
equals(dq: DualQuaternion): boolean;
/**
* Transforms a point using this dual quaternion.
* @param point - The THREE.Vector3 to transform.
* @returns The transformed point.
*/
transformPoint(point: THREE.Vector3): THREE.Vector3; //追記
/**
* Calculates the conjugate of this dual quaternion.
* @returns The current instance.
*/
conjugate(): this; //追記
/**
* Interpolates between two dual quaternions.
* @param dq - The target dual quaternion.
* @param t - The interpolation factor (0.0 to 1.0).
* @returns The interpolated dual quaternion.
*/
slerp(dq: DualQuaternion, t: number): this; //追記
/**
* Sets this dual quaternion from a translation and rotation.
* @param translation - A THREE.Vector3 representing the translation.
* @param rotation - A THREE.Quaternion representing the rotation.
* @returns The current instance.
*/
fromTranslationRotation(translation: THREE.Vector3, rotation: THREE.Quaternion): this; //追記
/**
* Extracts the translation and rotation from this dual quaternion.
* @param translation - The output translation vector.
* @param rotation - The output rotation quaternion.
* @returns The current instance.
*/
toTranslationRotation(translation: THREE.Vector3, rotation: THREE.Quaternion): this; //追記
}