You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: dot.m
    path of file: ./repos/mtex/geometry/@Miller
    
    the code of the file until where you have to start completion: function d = dot(m1,m2,varargin)
% inner product between two Miller indece
%
% Syntax
%   d = dot(m1,m2)
%   d = dot(m1,m2,'antipodal')
%
% Input
%  m1, m2 - @Miller

    
function d = dot(m1,m2,varargin)
% inner product between two Miller indece
%
% Syntax
%   d = dot(m1,m2)
%   d = dot(m1,m2,'antipodal')
%
% Input
%  m1, m2 - @Miller
%
% Output
%  d - double, same size as |m1| and |m2| 
% 
% Options
%  noSymmetry - do *not* consider sym. equiv. directions
%  max       - (default) maximum dot product with respect to all sym. equiv.
%  min       - minimum dot product with respect to all sym. equiv.
%  all       - all dot products with respect to sym. equiv.
%  antipodal - include antipodal symmetry
%

% maybe we should ignore symmetry
if check_option(varargin,'noSymmetry') || ~isa(m2,'Miller')
  d = dot@vector3d(m1,m2,varargin{:});
  return
end