SPHinXsys  alpha version
Public Member Functions | List of all members
SPH::Transform2d Class Reference

Coordinate transform in 2D Note that the rotation is around the frame (or local) origin. More...

#include <base_data_type.h>

Public Member Functions

 Transform2d (const Vec2d &translation)
 
 Transform2d (const Rotation2d &rotation, const Vec2d &translation=Vec2d(0))
 
Vec2d xformFrameVecToBase (const Vec2d &origin)
 
Vec2d shiftFrameStationToBase (const Vec2d &origin)
 
Vec2d xformBaseVecToFrame (const Vec2d &target)
 
Vec2d shiftBaseStationToFrame (const Vec2d &target)
 

Detailed Description

Coordinate transform in 2D Note that the rotation is around the frame (or local) origin.

Member Function Documentation

◆ shiftBaseStationToFrame()

Vec2d SPH::Transform2d::shiftBaseStationToFrame ( const Vec2d &  target)
inline

Inverse transformation. Note that the inverse translation operation is carried out first.

◆ shiftFrameStationToBase()

Vec2d SPH::Transform2d::shiftFrameStationToBase ( const Vec2d &  origin)
inline

Forward transformation. Note that the rotation operation is carried out first.

◆ xformBaseVecToFrame()

Vec2d SPH::Transform2d::xformBaseVecToFrame ( const Vec2d &  target)
inline

Inverse rotation.

◆ xformFrameVecToBase()

Vec2d SPH::Transform2d::xformFrameVecToBase ( const Vec2d &  origin)
inline

Forward rotation.


The documentation for this class was generated from the following file: