create a 3D point from 2 angles on the unit sphere
create a 3D point from 2 angles on the unit sphere
co-latitude 0<theta<Pi
longitude 0<phi<2Pi
conversion from a Point to Point3D
create 3D point specifying the 3 cartesian coordinates.
create 3D point specifying the 3 cartesian coordinates.
You can get access to them with x
,y
or z
values
1st coordinate
2d coordinate
3d coordinate
scale all coordinates by s
scale all coordinates by s
addition
addition
substraction
substraction
inverse-scale (divide) all coordinates by s
inverse-scale (divide) all coordinates by s
direct access to coordinates
direct access to coordinates
val p=new Point(1,2,3); p(0)=3
coordinates list
coordinates list
dimension
dimension
distance to other point
distance to other point
squared distance to some other point
squared distance to some other point
dot product
dot product
norm of the vector
norm of the vector
spherical coordinates of the point
spherical coordinates of the point
[R,theta,phi] tuple with 0<theta<Pi,0<phi<2Pi
pretty printing
pretty printing
Angles of the 3D point on the unit sphere
Angles of the 3D point on the unit sphere
[theta,phi] tuple with 0<theta<Pi,0<phi<2Pi
1st coordinate
2d coordinate
3d coordinate
Specialization of Point to 3D case.
contains further functions to deal with corrresponding angles in space.