Logo Search packages:      
Sourcecode: inkscape version File versions

NR::Coord namedview_dim_snap ( SPNamedView const *  nv,
Snapper::PointType  t,
NR::Point &  req,
NR::Dim2 const   dim 
)

Try to snap req in one dimension.

Parameters:
nv NamedView to use.
req Point to snap; updated to the snapped point if a snap occurred.
dim Dimension to snap in.
Returns:
Distance to the snap point along the dim axis, or NR_HUGE if no snap occurred.

Definition at line 50 of file snap.cpp.

References namedview_vector_snap().

Referenced by namedview_dim_snap_list_scale(), and namedview_free_snap().

{
    return namedview_vector_snap (nv, t, req, component_vectors[dim]);
}


Generated by  Doxygen 1.6.0   Back to index