// Declare a function that takes a variable number of arguments public static double CurrentO_comp(double currentDirection, double currentMagnitude, double beachOrientation) { WaterCurrentComponents waterCmp = new WaterCurrentComponents(currentMagnitude, currentDirection, beachOrientation); double dblRetVal = waterCmp.dblVcomp; return(dblRetVal); }
// Declare a function that takes a variable number of arguments public static double CurrentO_comp(double currentDirection, double currentMagnitude, double beachOrientation) { WaterCurrentComponents waterCmp = new WaterCurrentComponents(currentMagnitude, currentDirection, beachOrientation); double dblRetVal = waterCmp.dblVcomp; return dblRetVal; }