/** * @brief Transform a point from local space to world space. **/ public TSVector4 TransformPoint(TSVector4 point) { Debug.Assert(point.w == FP.One); return(TSVector4.Transform(point, localToWorldMatrix)); }
/** * @brief Transform a vector from world space to local space. **/ public TSVector4 InverseTransformVector(TSVector4 vector) { Debug.Assert(vector.w == FP.Zero); return(TSVector4.Transform(vector, worldToLocalMatrix)); }
/** * @brief Transform a vector from local space to world space. **/ public TSVector4 TransformVector(TSVector4 vector) { Debug.Assert(vector.w == FP.Zero); return(TSVector4.Transform(vector, localToWorldMatrix)); }
public TSVector InverseTransformPoint(TSVector point) { return(TSVector4.Transform(point, worldToLocalMatrix).ToTSVector()); }
/** * @brief Transform a point from world space to local space. **/ public TSVector4 InverseTransformPoint(TSVector4 point) { Debug.Assert(point.w == FP.One); return(TSVector4.Transform(point, worldToLocalMatrix)); }
public TSVector TransformPoint(TSVector point) { return(TSVector4.Transform(point, localToWorldMatrix).ToTSVector()); }