0.6.0
Loading...
Searching...
No Matches
mod_cg_transformation Module Reference

Data Types

interface  initialize
 
type  t_cg_transformation
 Representation of a transformation. More...
 

Functions/Subroutines

pure subroutine cg_transformation_initialize (transformation, dimension)
 Initialize the transformation to the identity.
 
pure subroutine cg_transformation_compose (transformation, target)
 Compose two transformations.
 
pure subroutine cg_transformation_add_rotation_x (transformation, angle)
 Add a rotation around the x axis.
 
pure subroutine cg_transformation_add_rotation_y (transformation, angle)
 Add a rotation around the y axis.
 
pure subroutine cg_transformation_add_rotation_z (transformation, angle)
 Add a rotation around the z axis.
 
pure subroutine cg_transformation_add_rotation (transformation, axis, angle)
 Add a rotation around a given axis.
 
pure subroutine cg_transformation_add_rotation_cos_sin (transformation, axis, c, s)
 Add a rotation around a given axis.
 
pure subroutine cg_transformation_add_translation (transformation, vector)
 Add a translation.
 
pure subroutine cg_transformation_add_scale_x (transformation, factor)
 Add a scaling factor in direction x.
 
pure subroutine cg_transformation_add_scale_y (transformation, factor)
 Add a scaling factor in direction y.
 
pure subroutine cg_transformation_add_scale_z (transformation, factor)
 Add a scaling factor in direction z.
 
pure subroutine cg_transformation_add_scale (transformation, vector)
 Add a scaling in every direction.
 
pure double precision function, dimension(size(point)) cg_transform_point (transformation, point)
 Apply a transformation to a point.
 
elemental subroutine cg_transform_point_elemental (transformation, x0, y0, z0, x, y, z)
 Apply a transformation to a point.
 
pure double precision function, dimension(size(direction)) cg_transform_direction (transformation, direction)
 Apply a transformation to a direction.
 
elemental subroutine cg_transform_direction_elemental (transformation, x0, y0, z0, x, y, z)
 Apply a transformation to a direction.
 
pure double precision function, dimension(size(point)) cg_inverse_transform_point (transformation, point)
 Apply an inverse transformation to a point.
 
elemental subroutine cg_inverse_transform_point_elemental (transformation, x0, y0, z0, x, y, z)
 Apply an inverse transformation to a point.
 
pure double precision function, dimension(size(direction)) cg_inverse_transform_direction (transformation, direction)
 Apply an inverse transformation to a direction.
 
elemental subroutine cg_inverse_transform_direction_elemental (transformation, x0, y0, z0, x, y, z)
 Apply an inverse transformation to a direction.