|
@@ -2040,7 +2040,7 @@ declare module "babylonjs/Maths/math.plane" {
|
|
|
* @returns a new Plane the normal vector to this plane at the given origin point.
|
|
|
* Note : the vector "normal" is updated because normalized.
|
|
|
*/
|
|
|
- static FromPositionAndNormal(origin: DeepImmutable<Vector3>, normal: DeepImmutable<Vector3>): Plane;
|
|
|
+ static FromPositionAndNormal(origin: DeepImmutable<Vector3>, normal: Vector3): Plane;
|
|
|
/**
|
|
|
* Calculates the distance from a plane and a point
|
|
|
* @param origin origin of the plane to be constructed
|
|
@@ -2444,39 +2444,32 @@ declare module "babylonjs/Maths/math.vector" {
|
|
|
* Reminder: js uses a left handed forward facing system
|
|
|
*/
|
|
|
export class Vector3 {
|
|
|
- /**
|
|
|
- * Defines the first coordinates (on X axis)
|
|
|
- */
|
|
|
- x: number;
|
|
|
- /**
|
|
|
- * Defines the second coordinates (on Y axis)
|
|
|
- */
|
|
|
- y: number;
|
|
|
- /**
|
|
|
- * Defines the third coordinates (on Z axis)
|
|
|
- */
|
|
|
- z: number;
|
|
|
private static _UpReadOnly;
|
|
|
private static _ZeroReadOnly;
|
|
|
+ /** @hidden */
|
|
|
+ _x: number;
|
|
|
+ /** @hidden */
|
|
|
+ _y: number;
|
|
|
+ /** @hidden */
|
|
|
+ _z: number;
|
|
|
+ /** @hidden */
|
|
|
+ _isDirty: boolean;
|
|
|
+ /** Gets or sets the x coordinate */
|
|
|
+ get x(): number;
|
|
|
+ set x(value: number);
|
|
|
+ /** Gets or sets the y coordinate */
|
|
|
+ get y(): number;
|
|
|
+ set y(value: number);
|
|
|
+ /** Gets or sets the z coordinate */
|
|
|
+ get z(): number;
|
|
|
+ set z(value: number);
|
|
|
/**
|
|
|
* Creates a new Vector3 object from the given x, y, z (floats) coordinates.
|
|
|
* @param x defines the first coordinates (on X axis)
|
|
|
* @param y defines the second coordinates (on Y axis)
|
|
|
* @param z defines the third coordinates (on Z axis)
|
|
|
*/
|
|
|
- constructor(
|
|
|
- /**
|
|
|
- * Defines the first coordinates (on X axis)
|
|
|
- */
|
|
|
- x?: number,
|
|
|
- /**
|
|
|
- * Defines the second coordinates (on Y axis)
|
|
|
- */
|
|
|
- y?: number,
|
|
|
- /**
|
|
|
- * Defines the third coordinates (on Z axis)
|
|
|
- */
|
|
|
- z?: number);
|
|
|
+ constructor(x?: number, y?: number, z?: number);
|
|
|
/**
|
|
|
* Creates a string representation of the Vector3
|
|
|
* @returns a string with the Vector3 coordinates.
|
|
@@ -2805,7 +2798,7 @@ declare module "babylonjs/Maths/math.vector" {
|
|
|
* @param reference define the Vector3 to update
|
|
|
* @returns the updated Vector3
|
|
|
*/
|
|
|
- normalizeToRef(reference: DeepImmutable<Vector3>): Vector3;
|
|
|
+ normalizeToRef(reference: Vector3): Vector3;
|
|
|
/**
|
|
|
* Creates a new Vector3 copied from the current Vector3
|
|
|
* @returns the new Vector3
|
|
@@ -3081,7 +3074,7 @@ declare module "babylonjs/Maths/math.vector" {
|
|
|
* @param right defines the right operand
|
|
|
* @param result defines the Vector3 where to store the result
|
|
|
*/
|
|
|
- static CrossToRef(left: Vector3, right: Vector3, result: Vector3): void;
|
|
|
+ static CrossToRef(left: DeepImmutable<Vector3>, right: DeepImmutable<Vector3>, result: Vector3): void;
|
|
|
/**
|
|
|
* Returns a new Vector3 as the normalization of the given vector
|
|
|
* @param vector defines the Vector3 to normalize
|
|
@@ -3636,14 +3629,28 @@ declare module "babylonjs/Maths/math.vector" {
|
|
|
* @see http://doc.babylonjs.com/features/position,_rotation,_scaling
|
|
|
*/
|
|
|
export class Quaternion {
|
|
|
- /** defines the first component (0 by default) */
|
|
|
- x: number;
|
|
|
- /** defines the second component (0 by default) */
|
|
|
- y: number;
|
|
|
- /** defines the third component (0 by default) */
|
|
|
- z: number;
|
|
|
- /** defines the fourth component (1.0 by default) */
|
|
|
- w: number;
|
|
|
+ /** @hidden */
|
|
|
+ _x: number;
|
|
|
+ /** @hidden */
|
|
|
+ _y: number;
|
|
|
+ /** @hidden */
|
|
|
+ _z: number;
|
|
|
+ /** @hidden */
|
|
|
+ _w: number;
|
|
|
+ /** @hidden */
|
|
|
+ _isDirty: boolean;
|
|
|
+ /** Gets or sets the x coordinate */
|
|
|
+ get x(): number;
|
|
|
+ set x(value: number);
|
|
|
+ /** Gets or sets the y coordinate */
|
|
|
+ get y(): number;
|
|
|
+ set y(value: number);
|
|
|
+ /** Gets or sets the z coordinate */
|
|
|
+ get z(): number;
|
|
|
+ set z(value: number);
|
|
|
+ /** Gets or sets the w coordinate */
|
|
|
+ get w(): number;
|
|
|
+ set w(value: number);
|
|
|
/**
|
|
|
* Creates a new Quaternion from the given floats
|
|
|
* @param x defines the first component (0 by default)
|
|
@@ -3651,15 +3658,7 @@ declare module "babylonjs/Maths/math.vector" {
|
|
|
* @param z defines the third component (0 by default)
|
|
|
* @param w defines the fourth component (1.0 by default)
|
|
|
*/
|
|
|
- constructor(
|
|
|
- /** defines the first component (0 by default) */
|
|
|
- x?: number,
|
|
|
- /** defines the second component (0 by default) */
|
|
|
- y?: number,
|
|
|
- /** defines the third component (0 by default) */
|
|
|
- z?: number,
|
|
|
- /** defines the fourth component (1.0 by default) */
|
|
|
- w?: number);
|
|
|
+ constructor(x?: number, y?: number, z?: number, w?: number);
|
|
|
/**
|
|
|
* Gets a string representation for the current quaternion
|
|
|
* @returns a string with the Quaternion coordinates
|
|
@@ -10653,7 +10652,7 @@ declare module "babylonjs/Culling/ray" {
|
|
|
* @param world a matrix to transform the ray to. Default is the identity matrix.
|
|
|
* @returns the new ray
|
|
|
*/
|
|
|
- static CreateNewFromTo(origin: DeepImmutable<Vector3>, end: DeepImmutable<Vector3>, world?: DeepImmutable<Matrix>): Ray;
|
|
|
+ static CreateNewFromTo(origin: Vector3, end: Vector3, world?: DeepImmutable<Matrix>): Ray;
|
|
|
/**
|
|
|
* Transforms a ray by a matrix
|
|
|
* @param ray ray to transform
|
|
@@ -14916,6 +14915,9 @@ declare module "babylonjs/Meshes/transformNode" {
|
|
|
* Object will rotate to face the camera's position instead of orientation
|
|
|
*/
|
|
|
static BILLBOARDMODE_USE_POSITION: number;
|
|
|
+ private static _TmpRotation;
|
|
|
+ private static _TmpScaling;
|
|
|
+ private static _TmpTranslation;
|
|
|
private _forward;
|
|
|
private _forwardInverted;
|
|
|
private _up;
|
|
@@ -18712,6 +18714,8 @@ declare module "babylonjs/Cameras/targetCamera" {
|
|
|
private static _RigCamTransformMatrix;
|
|
|
private static _TargetTransformMatrix;
|
|
|
private static _TargetFocalPoint;
|
|
|
+ private _tmpUpVector;
|
|
|
+ private _tmpTargetVector;
|
|
|
/**
|
|
|
* Define the current direction the camera is moving to
|
|
|
*/
|
|
@@ -18720,6 +18724,8 @@ declare module "babylonjs/Cameras/targetCamera" {
|
|
|
* Define the current rotation the camera is rotating to
|
|
|
*/
|
|
|
cameraRotation: Vector2;
|
|
|
+ /** Gets or sets a boolean indicating that the scaling of the parent hierarchy will not be taken in account by the camera */
|
|
|
+ ignoreParentScaling: boolean;
|
|
|
/**
|
|
|
* When set, the up vector of the camera will be updated by the rotation of the camera
|
|
|
*/
|
|
@@ -79727,7 +79733,7 @@ declare module BABYLON {
|
|
|
* @returns a new Plane the normal vector to this plane at the given origin point.
|
|
|
* Note : the vector "normal" is updated because normalized.
|
|
|
*/
|
|
|
- static FromPositionAndNormal(origin: DeepImmutable<Vector3>, normal: DeepImmutable<Vector3>): Plane;
|
|
|
+ static FromPositionAndNormal(origin: DeepImmutable<Vector3>, normal: Vector3): Plane;
|
|
|
/**
|
|
|
* Calculates the distance from a plane and a point
|
|
|
* @param origin origin of the plane to be constructed
|
|
@@ -80127,39 +80133,32 @@ declare module BABYLON {
|
|
|
* Reminder: js uses a left handed forward facing system
|
|
|
*/
|
|
|
export class Vector3 {
|
|
|
- /**
|
|
|
- * Defines the first coordinates (on X axis)
|
|
|
- */
|
|
|
- x: number;
|
|
|
- /**
|
|
|
- * Defines the second coordinates (on Y axis)
|
|
|
- */
|
|
|
- y: number;
|
|
|
- /**
|
|
|
- * Defines the third coordinates (on Z axis)
|
|
|
- */
|
|
|
- z: number;
|
|
|
private static _UpReadOnly;
|
|
|
private static _ZeroReadOnly;
|
|
|
+ /** @hidden */
|
|
|
+ _x: number;
|
|
|
+ /** @hidden */
|
|
|
+ _y: number;
|
|
|
+ /** @hidden */
|
|
|
+ _z: number;
|
|
|
+ /** @hidden */
|
|
|
+ _isDirty: boolean;
|
|
|
+ /** Gets or sets the x coordinate */
|
|
|
+ get x(): number;
|
|
|
+ set x(value: number);
|
|
|
+ /** Gets or sets the y coordinate */
|
|
|
+ get y(): number;
|
|
|
+ set y(value: number);
|
|
|
+ /** Gets or sets the z coordinate */
|
|
|
+ get z(): number;
|
|
|
+ set z(value: number);
|
|
|
/**
|
|
|
* Creates a new Vector3 object from the given x, y, z (floats) coordinates.
|
|
|
* @param x defines the first coordinates (on X axis)
|
|
|
* @param y defines the second coordinates (on Y axis)
|
|
|
* @param z defines the third coordinates (on Z axis)
|
|
|
*/
|
|
|
- constructor(
|
|
|
- /**
|
|
|
- * Defines the first coordinates (on X axis)
|
|
|
- */
|
|
|
- x?: number,
|
|
|
- /**
|
|
|
- * Defines the second coordinates (on Y axis)
|
|
|
- */
|
|
|
- y?: number,
|
|
|
- /**
|
|
|
- * Defines the third coordinates (on Z axis)
|
|
|
- */
|
|
|
- z?: number);
|
|
|
+ constructor(x?: number, y?: number, z?: number);
|
|
|
/**
|
|
|
* Creates a string representation of the Vector3
|
|
|
* @returns a string with the Vector3 coordinates.
|
|
@@ -80488,7 +80487,7 @@ declare module BABYLON {
|
|
|
* @param reference define the Vector3 to update
|
|
|
* @returns the updated Vector3
|
|
|
*/
|
|
|
- normalizeToRef(reference: DeepImmutable<Vector3>): Vector3;
|
|
|
+ normalizeToRef(reference: Vector3): Vector3;
|
|
|
/**
|
|
|
* Creates a new Vector3 copied from the current Vector3
|
|
|
* @returns the new Vector3
|
|
@@ -80764,7 +80763,7 @@ declare module BABYLON {
|
|
|
* @param right defines the right operand
|
|
|
* @param result defines the Vector3 where to store the result
|
|
|
*/
|
|
|
- static CrossToRef(left: Vector3, right: Vector3, result: Vector3): void;
|
|
|
+ static CrossToRef(left: DeepImmutable<Vector3>, right: DeepImmutable<Vector3>, result: Vector3): void;
|
|
|
/**
|
|
|
* Returns a new Vector3 as the normalization of the given vector
|
|
|
* @param vector defines the Vector3 to normalize
|
|
@@ -81319,14 +81318,28 @@ declare module BABYLON {
|
|
|
* @see http://doc.babylonjs.com/features/position,_rotation,_scaling
|
|
|
*/
|
|
|
export class Quaternion {
|
|
|
- /** defines the first component (0 by default) */
|
|
|
- x: number;
|
|
|
- /** defines the second component (0 by default) */
|
|
|
- y: number;
|
|
|
- /** defines the third component (0 by default) */
|
|
|
- z: number;
|
|
|
- /** defines the fourth component (1.0 by default) */
|
|
|
- w: number;
|
|
|
+ /** @hidden */
|
|
|
+ _x: number;
|
|
|
+ /** @hidden */
|
|
|
+ _y: number;
|
|
|
+ /** @hidden */
|
|
|
+ _z: number;
|
|
|
+ /** @hidden */
|
|
|
+ _w: number;
|
|
|
+ /** @hidden */
|
|
|
+ _isDirty: boolean;
|
|
|
+ /** Gets or sets the x coordinate */
|
|
|
+ get x(): number;
|
|
|
+ set x(value: number);
|
|
|
+ /** Gets or sets the y coordinate */
|
|
|
+ get y(): number;
|
|
|
+ set y(value: number);
|
|
|
+ /** Gets or sets the z coordinate */
|
|
|
+ get z(): number;
|
|
|
+ set z(value: number);
|
|
|
+ /** Gets or sets the w coordinate */
|
|
|
+ get w(): number;
|
|
|
+ set w(value: number);
|
|
|
/**
|
|
|
* Creates a new Quaternion from the given floats
|
|
|
* @param x defines the first component (0 by default)
|
|
@@ -81334,15 +81347,7 @@ declare module BABYLON {
|
|
|
* @param z defines the third component (0 by default)
|
|
|
* @param w defines the fourth component (1.0 by default)
|
|
|
*/
|
|
|
- constructor(
|
|
|
- /** defines the first component (0 by default) */
|
|
|
- x?: number,
|
|
|
- /** defines the second component (0 by default) */
|
|
|
- y?: number,
|
|
|
- /** defines the third component (0 by default) */
|
|
|
- z?: number,
|
|
|
- /** defines the fourth component (1.0 by default) */
|
|
|
- w?: number);
|
|
|
+ constructor(x?: number, y?: number, z?: number, w?: number);
|
|
|
/**
|
|
|
* Gets a string representation for the current quaternion
|
|
|
* @returns a string with the Quaternion coordinates
|
|
@@ -88184,7 +88189,7 @@ declare module BABYLON {
|
|
|
* @param world a matrix to transform the ray to. Default is the identity matrix.
|
|
|
* @returns the new ray
|
|
|
*/
|
|
|
- static CreateNewFromTo(origin: DeepImmutable<Vector3>, end: DeepImmutable<Vector3>, world?: DeepImmutable<Matrix>): Ray;
|
|
|
+ static CreateNewFromTo(origin: Vector3, end: Vector3, world?: DeepImmutable<Matrix>): Ray;
|
|
|
/**
|
|
|
* Transforms a ray by a matrix
|
|
|
* @param ray ray to transform
|
|
@@ -92261,6 +92266,9 @@ declare module BABYLON {
|
|
|
* Object will rotate to face the camera's position instead of orientation
|
|
|
*/
|
|
|
static BILLBOARDMODE_USE_POSITION: number;
|
|
|
+ private static _TmpRotation;
|
|
|
+ private static _TmpScaling;
|
|
|
+ private static _TmpTranslation;
|
|
|
private _forward;
|
|
|
private _forwardInverted;
|
|
|
private _up;
|
|
@@ -95911,6 +95919,8 @@ declare module BABYLON {
|
|
|
private static _RigCamTransformMatrix;
|
|
|
private static _TargetTransformMatrix;
|
|
|
private static _TargetFocalPoint;
|
|
|
+ private _tmpUpVector;
|
|
|
+ private _tmpTargetVector;
|
|
|
/**
|
|
|
* Define the current direction the camera is moving to
|
|
|
*/
|
|
@@ -95919,6 +95929,8 @@ declare module BABYLON {
|
|
|
* Define the current rotation the camera is rotating to
|
|
|
*/
|
|
|
cameraRotation: Vector2;
|
|
|
+ /** Gets or sets a boolean indicating that the scaling of the parent hierarchy will not be taken in account by the camera */
|
|
|
+ ignoreParentScaling: boolean;
|
|
|
/**
|
|
|
* When set, the up vector of the camera will be updated by the rotation of the camera
|
|
|
*/
|