MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / SetFinalPoint

Method SetFinalPoint

GTE/Applications/TrackObject.cpp:115–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void TrackObject::SetFinalPoint(int32_t x, int32_t y)
116{
117 if (mValid && mRoot)
118 {
119 mX1 = (2.0f * x - mXSize) * mMultiplier;
120 mY1 = (2.0f * y - mYSize) * mMultiplier;
121 if (mX1 != mX0 || mY1 != mY0)
122 {
123 OnSetFinalPoint();
124 }
125 }
126}
127
128void TrackObject::NormalizeAndUpdateRoot(Matrix4x4<float>& rotate)
129{

Callers 2

OnMouseMotionMethod · 0.80
OnMouseMotionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected