MCPcopy Create free account
hub / github.com/cinder/Cinder / setTransform

Method setTransform

samples/FrustumCulling/src/CullableObject.cpp:64–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void CullableObject::setTransform( const vec3 &position, const vec3 &rotation, float scale )
65{
66 mPosition = position;
67 mRotation = rotation;
68 mScale = scale;
69
70 // by creating a single transformation matrix, it will be very easy to construct a world space bounding box for this object
71 mTransform = mat4();
72 mTransform *= glm::translate( position );
73 mTransform *= toMat4( quat( rotation ) );
74 mTransform *= glm::scale( vec3( scale ) );
75}

Callers 6

runMethod · 0.80
runMethod · 0.80
setupMethod · 0.80
path2dpart3.jsFile · 0.80
path2dpart2.jsFile · 0.80
path2dpart1.jsFile · 0.80

Calls 2

translateFunction · 0.50
scaleFunction · 0.50

Tested by

no test coverage detected