Declaration

func alignPoint(
    toGrid point: NSPoint,
    type: GSNode.NodeType
) -> NSPoint

Declaration

- (NSPoint) alignPointToGrid:(NSPoint) point
                        type:(GSNodeType) type;

Declaration

alignPointToGrid_type_(
    point: NSPoint,
    type: GSNodeType
) -> NSPoint

Parameters

type

The node type used for alignment.

Discussion

Off-curve nodes may use a finer grid than on-curve nodes. Returns the original point when rounding is temporarily disabled or no associated master is available.

See Also

Grid

See Also

Grid