Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in), | dimension(3) | :: | v1 | Vectors to cross multiply |
|
real, | intent(in), | dimension(3) | :: | v2 | Vectors to cross multiply |
Normal vector that is the output
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real64), | intent(in), | dimension(3) | :: | v1 | Vectors to cross multiply |
|
real(kind=real64), | intent(in), | dimension(3) | :: | v2 | Vectors to cross multiply |
Normal vector that is the output
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real32), | intent(in) | :: | k | |||
class(vector3), | intent(in) | :: | v1 |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real64), | intent(in) | :: | k | |||
class(vector3), | intent(in) | :: | v1 |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | k | |||
class(vector3), | intent(in) | :: | v1 |
A point object with coordinates stored in cartesian coordinates
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=real64), | public | :: | x | ||||
real(kind=real64), | public | :: | y |
procedure, public :: print => point2_print_cartesian | |
procedure, public :: print_pol => point2_print_polar | |
procedure, public :: rho => point2_rho | |
procedure, public :: theta => point2_theta | |
procedure, public :: to_array => point2_to_array | |
procedure, public :: dist => point2_distance_between_point2 | |
generic, public :: from_pol => from_pol_r32, from_pol_r64, from_pol_int | This is the comment for a generic function |
generic, public :: assignment(=) => from_array_r32, from_array_r64, from_array_int | |
generic, public :: operator(+) => add | |
generic, public :: operator(-) => subtract_point2, unary_minus | |
procedure, public :: add => point2_plus_point2 | |
procedure, public :: subtract_point2 => point2_minus_point2 | |
procedure, public :: unary_minus => point2_unary_minus | |
procedure, public, nopass :: from_pol_r32 => point2_from_polar_r32 | |
procedure, public, nopass :: from_pol_r64 => point2_from_polar_r64 | |
procedure, public, nopass :: from_pol_int => point2_from_polar_int | |
procedure, public :: from_array_r32 => point2_from_array_r32 | |
procedure, public :: from_array_r64 => point2_from_array_r64 | |
procedure, public :: from_array_int => point2_from_array_int |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=real64), | public | :: | x | ||||
real(kind=real64), | public | :: | y | ||||
real(kind=real64), | public | :: | z |
procedure, public :: print => point3_print_cartesian | |
procedure, public :: print_sph => point3_print_spherical | |
procedure, public :: rho => point3_rho | |
procedure, public :: theta => point3_theta | |
procedure, public :: phi => point3_phi | |
procedure, public :: to_array => point3_to_array | |
procedure, public :: dist => point3_distance_between_point3 | |
generic, public :: from_sph => from_sph_r32, from_sph_r64, from_sph_int | This is the comment for a generic function |
generic, public :: operator(+) => add | |
generic, public :: assignment(=) => from_array_r32, from_array_r64, from_array_int | |
generic, public :: operator(-) => subtract | |
procedure, public :: add => point3_plus_point3 | |
procedure, public :: point3_unary_minus | |
procedure, public :: subtract => point3_minus_point3 | |
procedure, public, nopass :: from_sph_r32 => point3_from_spherical_r32 | |
procedure, public, nopass :: from_sph_r64 => point3_from_spherical_r64 | |
procedure, public, nopass :: from_sph_int => point3_from_spherical_int | |
procedure, public :: from_array_r32 => point3_from_array_r32 | |
procedure, public :: from_array_r64 => point3_from_array_r64 | |
procedure, public :: from_array_int => point3_from_array_int |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=real64), | public | :: | x | ||||
real(kind=real64), | public | :: | y | ||||
real(kind=real64), | public | :: | z |
procedure, public :: print => vector3_print | |
procedure, public :: length => vector3_magnitude | |
procedure, public :: to_array => vector3_to_array | |
generic, public :: from_array => from_array_r32, from_array_r64, from_array_int | |
generic, public :: operator(+) => add_vector3 | |
generic, public :: operator(-) => subtract_vector3, unary_minus | |
generic, public :: operator(*) => multiply_scalar_r32, multiply_scalar_r64, multiply_scalar_int | |
generic, public :: operator(.dot.) => dot | |
generic, public :: operator(.cross.) => cross | |
generic, public :: operator(.angle.) => angle_between | |
generic, public :: assignment(=) => from_array_r32, from_array_r64, from_array_int | |
procedure, public :: from_array_r32 => vector3_from_array_r32 | |
procedure, public :: from_array_r64 => vector3_from_array_r64 | |
procedure, public :: from_array_int => vector3_from_array_int | |
procedure, public :: add_vector3 => vector3_plus_vector3 | |
procedure, public :: multiply_scalar_r32 => vector3_times_scalar_r32 | |
procedure, public :: multiply_scalar_r64 => vector3_times_scalar_r64 | |
procedure, public :: multiply_scalar_int => vector3_times_scalar_int | |
procedure, public :: dot => vector3_dot_vector3 | |
procedure, public :: cross => vector3_cross_vector3 | |
procedure, public :: angle_between => vector3_angle_between_vector3 | |
procedure, public :: subtract_vector3 => vector3_minus_vector3 | |
procedure, public :: unary_minus => vector3_unary_minus |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=real64), | public | :: | m | ||||
real(kind=real64), | public | :: | b |
procedure, public :: atx => line2_atx | Evaluate y = mx + b for a given x |
procedure, public :: aty => line2_aty | Evaluate y = mx + b for a given y |
procedure, public :: print => line2_print | |
generic, public :: assignment(=) => from_two_points | |
procedure, public :: from_two_points => line2_from_two_point2 |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(point2), | intent(in) | :: | self |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real32), | intent(in) | :: | rho | |||
real(kind=real32), | intent(in) | :: | theta |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real64), | intent(in) | :: | rho | |||
real(kind=real64), | intent(in) | :: | theta |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | rho | |||
integer, | intent(in) | :: | theta |
Calculate the magnitude (distance from the origin) of
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(point2), | intent(in) | :: | self |
Return the angle (in degrees) of the polar representation of a point
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(point2), | intent(in) | :: | self |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(point3), | intent(in) | :: | self |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real32), | intent(in) | :: | rho | |||
real(kind=real32), | intent(in) | :: | theta | |||
real(kind=real32), | intent(in) | :: | phi |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real64), | intent(in) | :: | rho | |||
real(kind=real64), | intent(in) | :: | theta | |||
real(kind=real64), | intent(in) | :: | phi |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | rho | |||
integer, | intent(in) | :: | theta | |||
integer, | intent(in) | :: | phi |
Calculate the magnitude (distance from the origin) of
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(point3), | intent(in) | :: | self |
Return the inlination theta
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(point3), | intent(in) | :: | self |
return the azimuth phi
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(point3), | intent(in) | :: | self |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector3), | intent(in) | :: | self |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector3), | intent(in) | :: | self |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in), | dimension(3) | :: | v1 | Vectors to cross multiply |
|
real, | intent(in), | dimension(3) | :: | v2 | Vectors to cross multiply |
Normal vector that is the output
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real64), | intent(in), | dimension(3) | :: | v1 | Vectors to cross multiply |
|
real(kind=real64), | intent(in), | dimension(3) | :: | v2 | Vectors to cross multiply |
Normal vector that is the output
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in), | dimension(3) | :: | p1 | Points to calculate distance between |
|
real, | intent(in), | dimension(3) | :: | p2 | Points to calculate distance between |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(point2), | intent(out) | :: | point | |||
real(kind=real32), | intent(in), | dimension(2) | :: | array |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(point2), | intent(out) | :: | point | |||
real(kind=real64), | intent(in), | dimension(2) | :: | array |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(point2), | intent(out) | :: | point | |||
integer, | intent(in), | dimension(2) | :: | array |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(point2), | intent(in) | :: | self |
Print the polar coordinates of a point in this form
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(point2), | intent(in) | :: | self |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(point3), | intent(out) | :: | point | |||
real(kind=real32), | intent(in), | dimension(3) | :: | array |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(point3), | intent(out) | :: | point | |||
real(kind=real64), | intent(in), | dimension(3) | :: | array |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(point3), | intent(out) | :: | point | |||
integer, | intent(in), | dimension(3) | :: | array |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(point3), | intent(in) | :: | self |
Print the polar coordinates of a point in this form
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(point3), | intent(in) | :: | self |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector3), | intent(in) | :: | self |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector3), | intent(out) | :: | vector | |||
real(kind=real32), | intent(in), | dimension(3) | :: | array |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector3), | intent(out) | :: | vector | |||
real(kind=real64), | intent(in), | dimension(3) | :: | array |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector3), | intent(out) | :: | vector | |||
integer, | intent(in), | dimension(3) | :: | array |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(line2), | intent(in) | :: | self |